[Patch 1/10]: ext3 online resize: fix error codes
From: Stephen Tweedie (sct_at_redhat.com)
Date: 09/30/04
- Previous message: Andries.Brouwer_at_cwi.nl: "[PATCH] overcommit symbolic constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 14:23:18 +0100 To: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>, Andreas Dilger <adilger@clusterfs.com>, "Theodore Ts'o" <tytso@mit.edu>, ext2-devel@lists.sourceforge.net
Return EPERM, not EACCES, if we try to extend the filesystem without
sufficient privilege.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
--- 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Andries.Brouwer_at_cwi.nl: "[PATCH] overcommit symbolic constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: -mm -> 2.6.13 merge status
... >> mean that the success rate for crashing kernels is not high enough for ...
> other crashdump methods. ... This is not a filesystem but a filesystem + ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: silent semantic changes with reiser4
... > Marketed product: a set of hooks, the wider the better, no matter how ...
remove these features and make it a "normal" filesystem. ... you changed into a meta
directory using ftp and some manage to break ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - Re: silent semantic changes with reiser4
... on a sufficiently fast box; don't work when there are ... Remember that the
Solaris attribute model is just another filesystem ... inodes that delete themselves
when other inodes are changed creep me ... send the line "unsubscribe linux-kernel" in
... (Linux-Kernel) - Re: First impressions of reiserfs4
... the sys_statfs64API is broken such that the filesystem can't make ... we can't
be guaranteed to fit into the 32-bit f_blocks counts ... Andreas Dilger ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: FYI: dbt testing on 2.6.0-test4-mm4 fails
... which patch set seems to have caused a break. ... the direct-io code
hasn't changed significantly since February. ... > Which filesystem are you using? ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel)