} 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;
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;
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);
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);
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);
/* 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);