mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
fs: Support the root file system attributes(mode, uid, gid and time)
Note: all attributes is guarded by PSEUDOFS_ATTRIBUTES to save the space Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I664d60382e356068fd920f08aca5b4a49d8d92a9
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
09f3a1ec8e
commit
0148e1d501
@@ -2633,7 +2633,7 @@ int unionfs_mount(FAR const char *fspath1, FAR const char *prefix1,
|
||||
* for now, however.
|
||||
*/
|
||||
|
||||
ret = inode_reserve(mountpt, &mpinode);
|
||||
ret = inode_reserve(mountpt, 0777, &mpinode);
|
||||
if (ret < 0)
|
||||
{
|
||||
/* inode_reserve can fail for a couple of reasons, but the most likely
|
||||
@@ -2652,10 +2652,7 @@ int unionfs_mount(FAR const char *fspath1, FAR const char *prefix1,
|
||||
|
||||
INODE_SET_MOUNTPT(mpinode);
|
||||
|
||||
mpinode->u.i_mops = &unionfs_operations;
|
||||
#ifdef CONFIG_FILE_MODE
|
||||
mpinode->i_mode = 0755;
|
||||
#endif
|
||||
mpinode->u.i_mops = &unionfs_operations;
|
||||
|
||||
/* Call unionfs_dobind to do the real work. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user