* [PATCH] VFS: fix statfs() automounter semantics regression
@ 2011-11-01 23:23 Dan McGee
2011-11-01 23:23 ` Dan McGee
0 siblings, 1 reply; 2+ messages in thread
From: Dan McGee @ 2011-11-01 23:23 UTC (permalink / raw)
To: Alexander Viro, linux-fsdevel, linux-kernel
Cc: dave, tom, Linus Torvalds, Trond Myklebust
No one in their right mind would expect statfs() to not work on a
automounter managed mount point. Fix it.
This mirrors the fix made to the quota code in 815d405ceff0d69646.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
---
fs/statfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/statfs.c b/fs/statfs.c
index 8244924..9cf04a1 100644
--- a/fs/statfs.c
+++ b/fs/statfs.c
@@ -76,7 +76,7 @@ EXPORT_SYMBOL(vfs_statfs);
int user_statfs(const char __user *pathname, struct kstatfs *st)
{
struct path path;
- int error = user_path(pathname, &path);
+ int error = user_path_at(AT_FDCWD, pathname, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path);
if (!error) {
error = vfs_statfs(&path, st);
path_put(&path);
--
1.7.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] VFS: fix statfs() automounter semantics regression
2011-11-01 23:23 [PATCH] VFS: fix statfs() automounter semantics regression Dan McGee
@ 2011-11-01 23:23 ` Dan McGee
0 siblings, 0 replies; 2+ messages in thread
From: Dan McGee @ 2011-11-01 23:23 UTC (permalink / raw)
To: Alexander Viro, linux-fsdevel, linux-kernel
Cc: dave, tom, Linus Torvalds, Trond Myklebust
No one in their right mind would expect statfs() to not work on a
automounter managed mount point. Fix it.
This mirrors the fix made to the quota code in 815d405ceff0d69646.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
---
fs/statfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/statfs.c b/fs/statfs.c
index 8244924..9cf04a1 100644
--- a/fs/statfs.c
+++ b/fs/statfs.c
@@ -76,7 +76,7 @@ EXPORT_SYMBOL(vfs_statfs);
int user_statfs(const char __user *pathname, struct kstatfs *st)
{
struct path path;
- int error = user_path(pathname, &path);
+ int error = user_path_at(AT_FDCWD, pathname, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path);
if (!error) {
error = vfs_statfs(&path, st);
path_put(&path);
--
1.7.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-01 23:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 23:23 [PATCH] VFS: fix statfs() automounter semantics regression Dan McGee
2011-11-01 23:23 ` Dan McGee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).