Re: immutable (WORM) file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 13 March 2012 10:40:39 David Sterba wrote:

> (I just know that the flag is there and is related to the question,
> haven't tested it myself and do not know what was the original
> intention.)

Not sure it helps, but the commits for these were:

commit fdebe2bd70047e057827cba85ba31b2545e31900
Author: Yan <yanzheng@xxxxxxxx>
Date:   Mon Jan 14 13:26:08 2008 -0500

    Btrfs: Add readonly inode flag
    
    This patch adds readonly inode flag support.  A file with this flag
    can't be modified, but can be deleted.
    
    Signed-off-by: Chris Mason <chris.mason@xxxxxxxxxx>

and..

commit cb6db4e57632ba8589cc2f9fe1d0aa9116b87ab8
Author: Jeff Mahoney <jeffm@xxxxxxx>
Date:   Mon Aug 15 17:27:21 2011 +0000
Author: Jeff Mahoney <jeffm@xxxxxxx>
Date:   Mon Aug 15 17:27:21 2011 +0000

    btrfs: btrfs_permission's RO check shouldn't apply to device nodes
    
    This patch tightens the read-only access checks in btrfs_permission to
     match the constraints in inode_permission. Currently, even though the
     device node itself will be unmodified, read-write access to device nodes
     is denied to when the device node resides on a read-only subvolume or a
     is a file that has been marked read-only by the btrfs conversion utility.
    
     With this patch applied, the check only affects regular files,
     directories, and symlinks. It also restructures the code a bit so that
     we don't duplicate the MAY_WRITE check for both tests.
    
    Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx>
    Signed-off-by: Chris Mason <chris.mason@xxxxxxxxxx>

-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC

This email may come with a PGP signature as a file. Do not panic.
For more info see: http://en.wikipedia.org/wiki/OpenPGP

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux