} mess_vfs_fs_stat;
_ASSERT_MSG_SIZE(mess_vfs_fs_stat);
+typedef struct {
+ cp_grant_id_t grant;
+
+ uint8_t data[52];
+} mess_vfs_fs_statvfs;
+_ASSERT_MSG_SIZE(mess_vfs_fs_statvfs);
+
typedef struct {
ino_t inode;
mess_vfs_fs_rename m_vfs_fs_rename;
mess_vfs_fs_slink m_vfs_fs_slink;
mess_vfs_fs_stat m_vfs_fs_stat;
+ mess_vfs_fs_statvfs m_vfs_fs_statvfs;
mess_vfs_fs_unlink m_vfs_fs_unlink;
mess_vfs_fs_utime m_vfs_fs_utime;
mess_vfs_utimens m_vfs_utimens;
st.f_flag |= ST_NOTRUNC;
/* Copy the struct to user space. */
- r = sys_safecopyto(fs_m_in.m_source, fs_m_in.REQ_GRANT, 0, (vir_bytes) &st,
- (phys_bytes) sizeof(st));
+ r = sys_safecopyto(fs_m_in.m_source, fs_m_in.m_vfs_fs_statvfs.grant, 0,
+ (vir_bytes) &st, (phys_bytes) sizeof(st));
return(r);
}
statvfs.f_bavail = statvfs.f_bfree;
statvfs.f_namemax = NAME_MAX;
- return sys_safecopyto(m_in.m_source, m_in.REQ_GRANT, 0,
- (vir_bytes) &statvfs, sizeof(statvfs));
+ return sys_safecopyto(m_in.m_source, m_in.m_vfs_fs_statvfs.grant, 0,
+ (vir_bytes) &statvfs, sizeof(statvfs));
}
statvfs.f_flag = ST_NOTRUNC;
statvfs.f_namemax = PNAME_MAX;
- return sys_safecopyto(fs_m_in.m_source, fs_m_in.REQ_GRANT, 0,
- (vir_bytes) &statvfs, sizeof(statvfs));
+ return sys_safecopyto(fs_m_in.m_source, fs_m_in.m_vfs_fs_statvfs.grant,
+ 0, (vir_bytes) &statvfs, sizeof(statvfs));
}
st.f_namemax = NAME_MAX;
/* Copy the struct to user space. */
- r = sys_safecopyto(fs_m_in.m_source, fs_m_in.REQ_GRANT, 0, (vir_bytes) &st,
- (phys_bytes) sizeof(st));
+ r = sys_safecopyto(fs_m_in.m_source, fs_m_in.m_vfs_fs_statvfs.grant, 0,
+ (vir_bytes) &st, (phys_bytes) sizeof(st));
return(r);
}
st.f_namemax = NAME_MAX;
/* Copy the struct to user space. */
- r = sys_safecopyto(fs_m_in.m_source, fs_m_in.REQ_GRANT, 0, (vir_bytes) &st,
- (phys_bytes) sizeof(st));
+ r = sys_safecopyto(fs_m_in.m_source, fs_m_in.m_vfs_fs_statvfs.grant, 0,
+ (vir_bytes) &st, (phys_bytes) sizeof(st));
return(r);
}
st.f_namemax = MFS_DIRSIZ;
/* Copy the struct to user space. */
- r = sys_safecopyto(fs_m_in.m_source, fs_m_in.REQ_GRANT, 0, (vir_bytes) &st,
- (phys_bytes) sizeof(st));
+ r = sys_safecopyto(fs_m_in.m_source, fs_m_in.m_vfs_fs_statvfs.grant, 0,
+ (vir_bytes) &st, (phys_bytes) sizeof(st));
return(r);
}
/* Fill in request message */
m.m_type = REQ_STATVFS;
- m.REQ_GRANT = grant_id;
+ m.m_vfs_fs_statvfs.grant = grant_id;
/* Send/rec request */
r = fs_sendrec(fs_e, &m);