lkml.org 
[lkml]   [2004]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] cowlinks v2
    Date
    Neat stuff!  But...

    Jörn Engel <joern@wohnheim.fh-wedel.de> writes:

    > + * Files with the S_COWLINK flag set cannot be written to, if more
    > + * than one hard link to them exists. Ultimately, this function
    > + * should copy the inode, assign the copy to the dentry and lower use
    > + * count of the old inode - one day.

    What happens if the disk fills while you are making the copy? Will
    open(2) on an *existing file* then return ENOSPC?

    I do not think you can implement this without changing the interface
    to open(2). Which means applications have to be made aware of it
    anyway. Which means you might as well leave your implementation as-is
    and let userspace worry about creating the copy (and dealing with the
    resulting errors).

    - Pat
    -
    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: 2005-03-22 14:01    [W:0.021 / U:2.352 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site