minix/lib/libpuffs
Thomas Veerman a9d0ffbd0d Define protocol version of {mode,ino,uid,gid}_t
The next commit will make mode_t 32-bits, ino_t 64-bits, nlink_t
32-bits, and off_t 64-bits. However, in the protocol there is no
room for that.

When analyzing the usage of these data types we can see that of
mode_t we currently use 15 bits and that future flags (if copied
from NetBSD) are only of importance to VFS and not to the actual
file system on disk. Therefore we can get away with keeping the
protocol version of mode_t (pmode_t) 16 bits.

At this point it is unlikely that MINIX will support file systems
that can hold more than 2^32 files. Keeping the protocol version of
ino_t (pino_t) 32-bits and exposing it as 64-bits to the rest of the
system is fine.

uid_t and gid_t are already 32-bits, but in behind the scenes they're
16-bits. This is sufficient since we don't support uid/gids larger
than 2^16-1.

off_t will become 64-bits, but the protocol had room reserved
for that since it was revised years ago.

So to make the difference clear between what the protocol supports
and what is exposed to the system, we define protocol version of
these data types.

Change-Id: Ifb883aafb222142e69d6dcc3049a47170b78b3ee
2013-03-28 19:39:21 +00:00
..
callcontext.c Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
creds.c Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
fs.h Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
glo.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
inode.c Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
link.c drop segment from safecopy invocations 2012-06-16 16:22:51 +00:00
Makefile Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
misc.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
mntopts.h Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
mount.c Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
null.c libpuffs: make GCC happy 2012-02-01 13:23:33 +00:00
open.c Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
path_puffs.c libpuffs: make GCC happy 2012-02-01 13:23:33 +00:00
path.c Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
pnode.c Fix compiler warnings 2011-11-14 14:21:39 +00:00
protect.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
proto.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
puffs_cc.3 Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs_cred.3 Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs_msgif.h Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs_node.3 Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs_ops.3 Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs_path.3 Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs_priv.h Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs.3 Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
puffs.c Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
puffs.h Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
read.c Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
shlib_version set major version of shlibs to 0 2012-05-10 16:38:24 +02:00
stadir.c Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
subr.c Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
table.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
time.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
utility.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00