[Patch 1/10]: ext3 online resize: fix error codes

From: Stephen Tweedie
Date: Thu Sep 30 2004 - 08:46:49 EST


Return EPERM, not EACCES, if we try to extend the filesystem without
sufficient privilege.

Signed-off-by: Stephen Tweedie <sct@xxxxxxxxxx>

--- linux-2.6.9-rc2-mm4/fs/ext3/ioctl.c.=K0000=.orig
+++ linux-2.6.9-rc2-mm4/fs/ext3/ioctl.c
@@ -181,7 +181,7 @@ flags_err:
int err;

if (!capable(CAP_SYS_RESOURCE))
- return -EACCES;
+ return -EPERM;

if (sb->s_flags & MS_RDONLY)
return -EROFS;
@@ -202,7 +202,7 @@ flags_err:
int err;

if (!capable(CAP_SYS_RESOURCE))
- return -EACCES;
+ return -EPERM;

if (inode->i_sb->s_flags & MS_RDONLY)
return -EROFS;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/