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
+3 -3
View File
@@ -110,7 +110,7 @@ int do_chmod(void)
if (state.s_read_only)
return EROFS;
if ((ino = find_inode(m_in.REQ_INODE_NR)) == NULL)
if ((ino = find_inode(m_in.m_vfs_fs_chmod.inode)) == NULL)
return EINVAL;
if ((r = verify_inode(ino, path, NULL)) != OK)
@@ -118,7 +118,7 @@ int do_chmod(void)
/* Set the new file mode. */
attr.a_mask = SFFS_ATTR_MODE;
attr.a_mode = m_in.REQ_MODE; /* no need to convert in this direction */
attr.a_mode = m_in.m_vfs_fs_chmod.mode; /* no need to convert in this direction */
if ((r = sffs_table->t_setattr(path, &attr)) != OK)
return r;
@@ -127,7 +127,7 @@ int do_chmod(void)
if ((r = verify_path(path, ino, &attr, NULL)) != OK)
return r;
m_out.RES_MODE = get_mode(ino, attr.a_mode);
m_out.m_fs_vfs_chmod.mode = get_mode(ino, attr.a_mode);
return OK;
}