Android: sdcardfs: Don't complain in fixup_lower_ownership
authorDaniel Rosenberg <drosen@google.com>
Wed, 19 Apr 2017 05:49:38 +0000 (22:49 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:38 +0000 (18:03 +0200)
Not all filesystems support changing the owner of a file.
We shouldn't complain if it doesn't happen.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 37488099
Change-Id: I403e44ab7230f176e6df82f6adb4e5c82ce57f33

fs/sdcardfs/derived_perm.c

index 1ca15dc28bad5020e88b5c4a9c87034b4b62159a..9a281b68c408f6b4fa1e1f81a97c8577db10879a 100644 (file)
@@ -245,7 +245,7 @@ void fixup_lower_ownership(struct dentry *dentry, const char *name)
                        error = notify_change2(path.mnt, path.dentry, &newattrs);
                mutex_unlock(&inode->i_mutex);
                if (error)
-                       pr_err("sdcardfs: Failed to touch up lower fs gid/uid.\n");
+                       pr_debug("sdcardfs: Failed to touch up lower fs gid/uid for %s\n", name);
        }
        sdcardfs_put_lower_path(dentry, &path);
 }