[lkml]   [2007]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PATCH: udf fs corruption on linux-2.6
    On 06/13/2007 04:48 PM, Rich Coe wrote:
    > Hi Linus,
    > This patch fixes directory and missing files corruption in fs/udf which
    > occurs on all known 2.6 releases.
    > The corruption occurs because blocks which were pre-alloc'd for a directory
    > are released back to the fs freelist, but the inode's alloc block information
    > is not updated to reflect this.
    > You would not see corruption if the number of files in any directory is
    > less than 41, because the pre-alloc routine does not allocate blocks for the
    > directory until the number of files is over 40.
    > The problem occurs during unmounting because fs/udf incorrectly calls
    > udf_discard_prealloc() from udf_clear_inode(). udf_discard_prealloc() will
    > update the inode and schedule it for write, but no write will ever occur
    > because the fs is in the process of being umount'd.
    > The solution is to add a put_inode routine to update the inode contents
    > and release the pre-alloc'd blocks to disk prior to clearing the inode
    > from the kernel.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-06-13 23:31    [W:0.021 / U:1.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site