Message types for VFS chmod
Change-Id: I76e5df4c0a386682e863e640182c59e4ab7e30be
This commit is contained in:
@@ -25,9 +25,9 @@ int fs_chmod(void)
|
||||
if (global_pu->pu_ops.puffs_node_setattr == NULL)
|
||||
return(EINVAL);
|
||||
|
||||
mode = (mode_t) fs_m_in.REQ_MODE;
|
||||
mode = fs_m_in.m_vfs_fs_chmod.mode;
|
||||
|
||||
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_chmod.inode)) == NULL)
|
||||
return(EINVAL);
|
||||
|
||||
puffs_vattr_null(&va);
|
||||
@@ -39,7 +39,7 @@ int fs_chmod(void)
|
||||
return(EINVAL);
|
||||
|
||||
/* Return full new mode to caller. */
|
||||
fs_m_out.RES_MODE = pn->pn_va.va_mode;
|
||||
fs_m_out.m_fs_vfs_chmod.mode = pn->pn_va.va_mode;
|
||||
|
||||
return(OK);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user