Message types for VFS chmod

Change-Id: I76e5df4c0a386682e863e640182c59e4ab7e30be
This commit is contained in:
2014-07-28 17:05:29 +02:00
parent f90ed467fc
commit ea84447ccd
7 changed files with 35 additions and 17 deletions
+2 -2
View File
@@ -18,9 +18,9 @@ int fs_sync(message *fs_m_in, message *fs_m_out)
int fs_chmod(message *fs_m_in, message *fs_m_out)
{
struct inode *rip; /* target inode */
mode_t mode = (mode_t) fs_m_in->REQ_MODE;
mode_t mode = fs_m_in->m_vfs_fs_chmod.mode;
if( (rip = find_inode(fs_m_in->REQ_INODE_NR)) == NULL) return(EINVAL);
if( (rip = find_inode(fs_m_in->m_vfs_fs_chmod.inode)) == NULL) return(EINVAL);
get_inode(rip->i_dev, rip->i_num); /* mark inode in use */
rip->i_mode = (rip->i_mode & ~ALL_MODES) | (mode & ALL_MODES);
put_inode(rip); /* release the inode */