typedef u32_t pino_t; /* Protocol version of ino_t */
/* Request numbers */
-#define REQ_GETNODE (VFS_BASE + 1) /* Should be removed */
-#define REQ_PUTNODE (VFS_BASE + 2)
-#define REQ_SLINK (VFS_BASE + 3)
-#define REQ_FTRUNC (VFS_BASE + 4)
-#define REQ_CHOWN (VFS_BASE + 5)
-#define REQ_CHMOD (VFS_BASE + 6)
-#define REQ_INHIBREAD (VFS_BASE + 7)
-#define REQ_STAT (VFS_BASE + 8)
-#define REQ_UTIME (VFS_BASE + 9)
-#define REQ_STATVFS (VFS_BASE + 10)
-#define REQ_BREAD (VFS_BASE + 11)
-#define REQ_BWRITE (VFS_BASE + 12)
-#define REQ_UNLINK (VFS_BASE + 13)
-#define REQ_RMDIR (VFS_BASE + 14)
-#define REQ_UNMOUNT (VFS_BASE + 15)
-#define REQ_SYNC (VFS_BASE + 16)
-#define REQ_NEW_DRIVER (VFS_BASE + 17)
-#define REQ_FLUSH (VFS_BASE + 18)
-#define REQ_READ (VFS_BASE + 19)
-#define REQ_WRITE (VFS_BASE + 20)
-#define REQ_MKNOD (VFS_BASE + 21)
-#define REQ_MKDIR (VFS_BASE + 22)
-#define REQ_CREATE (VFS_BASE + 23)
-#define REQ_LINK (VFS_BASE + 24)
-#define REQ_RENAME (VFS_BASE + 25)
-#define REQ_LOOKUP (VFS_BASE + 26)
-#define REQ_MOUNTPOINT (VFS_BASE + 27)
-#define REQ_READSUPER (VFS_BASE + 28)
-#define REQ_NEWNODE (VFS_BASE + 29)
-#define REQ_RDLINK (VFS_BASE + 30)
-#define REQ_GETDENTS (VFS_BASE + 31)
-#define REQ_PEEK (VFS_BASE + 32)
-#define REQ_BPEEK (VFS_BASE + 33)
+#define REQ_GETNODE (FS_BASE + 1) /* Should be removed */
+#define REQ_PUTNODE (FS_BASE + 2)
+#define REQ_SLINK (FS_BASE + 3)
+#define REQ_FTRUNC (FS_BASE + 4)
+#define REQ_CHOWN (FS_BASE + 5)
+#define REQ_CHMOD (FS_BASE + 6)
+#define REQ_INHIBREAD (FS_BASE + 7)
+#define REQ_STAT (FS_BASE + 8)
+#define REQ_UTIME (FS_BASE + 9)
+#define REQ_STATVFS (FS_BASE + 10)
+#define REQ_BREAD (FS_BASE + 11)
+#define REQ_BWRITE (FS_BASE + 12)
+#define REQ_UNLINK (FS_BASE + 13)
+#define REQ_RMDIR (FS_BASE + 14)
+#define REQ_UNMOUNT (FS_BASE + 15)
+#define REQ_SYNC (FS_BASE + 16)
+#define REQ_NEW_DRIVER (FS_BASE + 17)
+#define REQ_FLUSH (FS_BASE + 18)
+#define REQ_READ (FS_BASE + 19)
+#define REQ_WRITE (FS_BASE + 20)
+#define REQ_MKNOD (FS_BASE + 21)
+#define REQ_MKDIR (FS_BASE + 22)
+#define REQ_CREATE (FS_BASE + 23)
+#define REQ_LINK (FS_BASE + 24)
+#define REQ_RENAME (FS_BASE + 25)
+#define REQ_LOOKUP (FS_BASE + 26)
+#define REQ_MOUNTPOINT (FS_BASE + 27)
+#define REQ_READSUPER (FS_BASE + 28)
+#define REQ_NEWNODE (FS_BASE + 29)
+#define REQ_RDLINK (FS_BASE + 30)
+#define REQ_GETDENTS (FS_BASE + 31)
+#define REQ_PEEK (FS_BASE + 32)
+#define REQ_BPEEK (FS_BASE + 33)
#define NREQS 34
-#define IS_VFS_RQ(type) (((type) & ~0xff) == VFS_BASE)
+#define IS_FS_RQ(type) (((type) & ~0xff) == FS_BASE)
#define TRNS_GET_ID(t) ((t) & 0xFFFF)
#define TRNS_ADD_ID(t,id) (((t) << 16) | ((id) & 0xFFFF))
caller_gid = INVAL_GID;
req_nr = fs_m_in.m_type;
- if (req_nr < VFS_BASE) {
- fs_m_in.m_type += VFS_BASE;
+ if (req_nr < FS_BASE) {
+ fs_m_in.m_type += FS_BASE;
req_nr = fs_m_in.m_type;
}
- ind = req_nr - VFS_BASE;
+ ind = req_nr - FS_BASE;
assert(ind == REQ_READ_SUPER);
caller_gid = INVAL_GID;
req_nr = fs_m_in.m_type;
- if (req_nr < VFS_BASE) {
- fs_m_in.m_type += VFS_BASE;
+ if (req_nr < FS_BASE) {
+ fs_m_in.m_type += FS_BASE;
req_nr = fs_m_in.m_type;
}
- ind = req_nr - VFS_BASE;
+ ind = req_nr - FS_BASE;
if (ind < 0 || ind >= NREQS) {
error = EINVAL;