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

From: Stephen Tweedie (sct_at_redhat.com)
Date: 09/30/04

  • Next message: Jean-Luc Cooke: "Re: [PROPOSAL/PATCH 2] Fortuna PRNG in /dev/random"
    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/


  • Next message: Jean-Luc Cooke: "Re: [PROPOSAL/PATCH 2] Fortuna PRNG in /dev/random"

    Relevant Pages