From: Erez Zadok Date: Thu, 29 Nov 2007 08:09:57 +0000 (-0500) Subject: Unionfs ODF: set the gid of /odf/ns to 0 on initial creation X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=27e10fa573fb2934ab1a8c9fddca8831a942fb6c;p=unionfs-odf.git Unionfs ODF: set the gid of /odf/ns to 0 on initial creation Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c index bd09433980..0ad2ba521d 100644 --- a/fs/unionfs/odf.c +++ b/fs/unionfs/odf.c @@ -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);