]> Zhao Yanbai Git Server - minix.git/commitdiff
Message types for VFS new_driver
authorLionel Sambuc <lionel@minix3.org>
Tue, 29 Apr 2014 19:13:28 +0000 (21:13 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:27 +0000 (17:05 +0200)
Change-Id: If1b6ee2c5beb43e72a69c27dbc32b72525831962

include/minix/ipc.h
servers/ext2/misc.c
servers/iso9660fs/misc.c
servers/mfs/misc.c
servers/vfs/request.c

index 0c64dcad570dd1f7cd2d750c8c2f0c8f2fb9410f..f1bf5ac310e9084b48b4cf658e979aeb2a77a283 100644 (file)
@@ -227,6 +227,16 @@ typedef struct {
 } mess_vfs_fs_mountpoint;
 _ASSERT_MSG_SIZE(mess_vfs_fs_mountpoint);
 
+typedef struct {
+       dev_t device;
+
+       cp_grant_id_t grant;
+       size_t path_len;
+
+       uint8_t data[40];
+} mess_vfs_fs_new_driver;
+_ASSERT_MSG_SIZE(mess_vfs_fs_new_driver);
+
 typedef struct {
        dev_t device;
 
@@ -395,6 +405,7 @@ typedef struct {
        mess_vfs_fs_lookup m_vfs_fs_lookup;
        mess_fs_vfs_lookup m_fs_vfs_lookup;
        mess_vfs_fs_mountpoint m_vfs_fs_mountpoint;
+       mess_vfs_fs_new_driver m_vfs_fs_new_driver;
        mess_vfs_fs_readsuper m_vfs_fs_readsuper;
        mess_fs_vfs_readsuper m_fs_vfs_readsuper;
        mess_vfs_fs_rename m_vfs_fs_rename;
index 03191a9a8bb431a577f47916fac4cde81c822557..2405ad3386194686ee7156f3961274d5b258114a 100644 (file)
@@ -71,9 +71,9 @@ int fs_new_driver(void)
   char label[sizeof(fs_dev_label)];
   int r;
 
-  dev = fs_m_in.REQ_DEV;
-  label_gid = (cp_grant_id_t) fs_m_in.REQ_GRANT;
-  label_len = (size_t) fs_m_in.REQ_PATH_LEN;
+  dev = fs_m_in.m_vfs_fs_new_driver.device;
+  label_gid = fs_m_in.m_vfs_fs_new_driver.grant;
+  label_len = fs_m_in.m_vfs_fs_new_driver.path_len;
 
   if (label_len > sizeof(label))
        return(EINVAL);
index 456f20157229ef8365fa10ce531a2220021887a3..6749affe5d4ddcd461b50971c0ecd07e7f46ae07 100644 (file)
@@ -26,9 +26,9 @@ int fs_new_driver(void)
   char label[sizeof(fs_dev_label)];
   int r;
 
-  dev = fs_m_in.REQ_DEV;
-  label_gid = (cp_grant_id_t) fs_m_in.REQ_GRANT;
-  label_len = (size_t) fs_m_in.REQ_PATH_LEN;
+  dev = fs_m_in.m_vfs_fs_new_driver.device;
+  label_gid = fs_m_in.m_vfs_fs_new_driver.grant;
+  label_len = fs_m_in.m_vfs_fs_new_driver.path_len;
 
   if (label_len > sizeof(label))
        return(EINVAL);
index d633595b65ef8e1c16dbc42499d0bbe109a4df8c..e4bcbc31b2a5c4a0af314ccd82c5c3fee9e2f9ce 100644 (file)
@@ -60,9 +60,9 @@ int fs_new_driver(void)
   char label[sizeof(fs_dev_label)];
   int r;
 
-  dev = fs_m_in.REQ_DEV;
-  label_gid = (cp_grant_id_t) fs_m_in.REQ_GRANT;
-  label_len = (size_t) fs_m_in.REQ_PATH_LEN;
+  dev = fs_m_in.m_vfs_fs_new_driver.device;
+  label_gid = fs_m_in.m_vfs_fs_new_driver.grant;
+  label_len = fs_m_in.m_vfs_fs_new_driver.path_len;
 
   if (label_len > sizeof(label))
        return(EINVAL);
index b31f5f085dc5b42ef6c11cfd6b5239c73de77bc9..17df01af27eb25495ef49a29c8e24e1700b433ed 100644 (file)
@@ -676,9 +676,9 @@ int req_newdriver(
 
   /* Fill in request message */
   m.m_type = REQ_NEW_DRIVER;
-  m.REQ_DEV = dev;
-  m.REQ_GRANT = grant_id;
-  m.REQ_PATH_LEN = len;
+  m.m_vfs_fs_new_driver.device = dev;
+  m.m_vfs_fs_new_driver.grant = grant_id;
+  m.m_vfs_fs_new_driver.path_len = len;
 
   /* Issue request */
   r = fs_sendrec(fs_e, &m);