minix/servers
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
..
devman Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
ds Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
ext2 Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
hgfs Create SFFS library out of HGFS 2012-04-09 18:08:26 +02:00
inet Let the build system manage compilation flags 2013-03-08 09:41:49 +01:00
init Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
ipc Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
is Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
iso9660fs Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
lwip LWIP - avoid an assert when a driver restarts 2013-03-25 16:51:25 +01:00
mfs Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
pfs Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
pm Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
procfs Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
rs Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
sched Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
vbfs Add VBFS: VirtualBox Shared Folder File System 2012-04-11 00:27:48 +02:00
vfs Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
vm VM: ARM/I386 PDE/PTE macro unification 2013-03-14 13:55:04 +00:00
Makefile lwip (inet's alternative) is compiled by default 2013-03-25 16:51:25 +01:00
Makefile.inc Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00