Unionfs ODF: set the gid of /odf/ns to 0 on initial creation
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 29 Nov 2007 08:09:57 +0000 (03:09 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:24 +0000 (19:03 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/odf.c

index bd09433980fa253198ca3cf5afd21d4ce822d17f..0ad2ba521db441805b8ab1e4c78b632e7c4094b3 100644 (file)
@@ -55,7 +55,11 @@ int __odf_create_hierarchy(struct dentry *odf_root)
                err = PTR_ERR(dentry);
                goto out;
        }
+       /* reset the /odf/ns's GID to 0 */
+       err = odf_set_opaque(dentry, -1);
        dput(dentry);
+       if (err)
+               goto out;
        dentry = __odf_create_dir(odf_root, ODF_IC);
        if (IS_ERR(dentry)) {
                err = PTR_ERR(dentry);