5 /*===========================================================================*
7 *===========================================================================*/
8 int fs_sync(message
*fs_m_in
, message
*fs_m_out
)
10 /* Perform the sync() system call. No-op on this FS. */
12 return(OK
); /* sync() can't fail */
15 /*===========================================================================*
17 *===========================================================================*/
18 int fs_chmod(message
*fs_m_in
, message
*fs_m_out
)
20 struct inode
*rip
; /* target inode */
21 mode_t mode
= fs_m_in
->m_vfs_fs_chmod
.mode
;
23 if( (rip
= find_inode(fs_m_in
->m_vfs_fs_chmod
.inode
)) == NULL
) return(EINVAL
);
24 get_inode(rip
->i_dev
, rip
->i_num
); /* mark inode in use */
25 rip
->i_mode
= (rip
->i_mode
& ~ALL_MODES
) | (mode
& ALL_MODES
);
26 put_inode(rip
); /* release the inode */