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:
Xiang Xiao
2021-07-09 13:43:26 +08:00
committed by Alan Carvalho de Assis
parent 09f3a1ec8e
commit 0148e1d501
21 changed files with 76 additions and 72 deletions
+2 -5
View File
@@ -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. */