} mess_fs_vfs_lookup;
_ASSERT_MSG_SIZE(mess_fs_vfs_lookup);
+typedef struct {
+ ino_t inode;
+
+ uint8_t data[48];
+} mess_vfs_fs_mountpoint;
+_ASSERT_MSG_SIZE(mess_vfs_fs_mountpoint);
+
typedef struct {
dev_t device;
mess_fs_vfs_create m_fs_vfs_create;
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_readsuper m_vfs_fs_readsuper;
mess_fs_vfs_readsuper m_fs_vfs_readsuper;
mess_vfs_utimens m_vfs_utimens;
*/
int r = OK;
struct puffs_node *pn;
- pmode_t bits;
+ mode_t bits;
/*
* XXX: we assume that lookup was done first, so pnode can be found with
* puffs_pn_nodewalk.
*/
- if ((pn = puffs_pn_nodewalk(global_pu, 0, &fs_m_in.REQ_INODE_NR)) == NULL)
+ if ((pn = puffs_pn_nodewalk(global_pu, 0, &fs_m_in.m_vfs_fs_mountpoint.inode))
+ == NULL)
return(EINVAL);
*/
register struct inode *rip;
int r = OK;
- pmode_t bits;
+ mode_t bits;
/* Temporarily open the file. */
- if( (rip = get_inode(fs_dev, fs_m_in.REQ_INODE_NR)) == NULL)
+ if( (rip = get_inode(fs_dev, fs_m_in.m_vfs_fs_mountpoint.inode)) == NULL)
return(EINVAL);
int r = OK;
/* Temporarily open the file. */
- if ((rip = get_dir_record(fs_m_in.REQ_INODE_NR)) == NULL)
+ if ((rip = get_dir_record(fs_m_in.m_vfs_fs_mountpoint.inode)) == NULL)
return(EINVAL);
if (rip->d_mountpoint)
pmode_t bits;
/* Temporarily open the file. */
- if( (rip = get_inode(fs_dev, (pino_t) fs_m_in.REQ_INODE_NR)) == NULL)
+ if( (rip = get_inode(fs_dev, fs_m_in.m_vfs_fs_mountpoint.inode)) == NULL)
return(EINVAL);
/* Fill in request message */
m.m_type = REQ_MOUNTPOINT;
- m.REQ_INODE_NR = (pino_t) inode_nr;
+ m.m_vfs_fs_mountpoint.inode = inode_nr;
/* Send/rec request */
return fs_sendrec(fs_e, &m);