lkml.org 
[lkml]   [2007]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC 09/26] linux/stat.h: Add the filetype white-out
    A white-out stops the VFS from further lookups of the white-out's name and
    returns -ENOENT. This is the same behaviour as if the filename isn't
    found. This can be used in combination with union mounts to virtually
    delete (white-out) files by creating a file of this file type.

    Signed-off-by: Jan Blunck <jblunck@suse.de>
    ---
    include/linux/stat.h | 2 ++
    1 file changed, 2 insertions(+)

    --- a/include/linux/stat.h
    +++ b/include/linux/stat.h
    @@ -10,6 +10,7 @@
    #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)

    #define S_IFMT 00170000
    +#define S_IFWHT 0160000 /* whiteout */
    #define S_IFSOCK 0140000
    #define S_IFLNK 0120000
    #define S_IFREG 0100000
    @@ -28,6 +29,7 @@
    #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
    #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
    #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
    +#define S_ISWHT(m) (((m) & S_IFMT) == S_IFWHT)

    #define S_IRWXU 00700
    #define S_IRUSR 00400
    --

    -
    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/

    \
     
     \ /
      Last update: 2007-07-30 18:21    [W:0.020 / U:122.176 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site