Return EPERM, not EACCES, if we try to extend the filesystem without
sufficient privilege.
Signed-off-by: Stephen Tweedie <[email protected]>
--- 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;