Re: ZERO LENGTH DIRECTORY & fsck

From: Robert Watson (rwatson_at_freebsd.org)
Date: 07/28/04

  • Next message: Marc G. Fournier: "Re: ZERO LENGTH DIRECTORY & fsck"
    Date: Wed, 28 Jul 2004 10:39:46 -0400 (EDT)
    To: "Marc G. Fournier" <scrappy@hub.org>
    
    

    On Tue, 27 Jul 2004, Marc G. Fournier wrote:

    > Is there anything that can be done to 'fix' this? Under 4.x, using
    > unionfs (and don't respond if your only answer is "its broken"), if it
    > crashes, fsck finds a whack of the above ...

    It's broken. :-) But in all honesty, this has been discussed extensively,
    and it's carefully documented in the man page. So if you run into bugs,
    it should not be a surprise.

    > Now, I think I understand the *why* for the error ... union creates a
    > 'mirror' of the file system, especially where a du/find is concerned,
    > and teh ZLDs are 'end nodes' that have no files under them ... but is
    > there a better way that fsck can handle those? Its almost as if it
    > doesn't know what to do with them, so has to remove them all ...

    Are you using union mounting of UFS or unionfs? Theory tells us that
    unionfs is a stacked file system layer, and shouldn't directly manipulate
    the on-disk layout of UFS, instead, issuing vnode operations that allow
    UFS to maintain its consistency guarantees. Theory tells us that union
    mounting UFS relies on UFS doing the magic, which means it has more
    opportunity to currupt on disk storage.

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Principal Research Scientist, McAfee Research

    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Marc G. Fournier: "Re: ZERO LENGTH DIRECTORY & fsck"

    Relevant Pages

    • Re: fsck is unable to solve the problem
      ... You're talking about a UFS filesystem? ... fsck can only fix what it has ... Finding a valid superblock is a trival task. ... on your production boxes that might precipitate dirty shutdowns. ...
      (comp.unix.solaris)
    • Re: fsck is unable to solve the problem
      ... tells me that superblock is corrupt. ... You're talking about a UFS filesystem? ... fsck can only fix what it has ... Finding a valid superblock is a trival task. ...
      (comp.unix.solaris)
    • Re: ZERO LENGTH DIRECTORY & fsck
      ... >> crashes, fsck finds a whack of the above ... ... > Are you using union mounting of UFS or unionfs? ...
      (freebsd-stable)
    • UNPDATE1: strange df result
      ... filesystem and run fsck. ... # umount /disk/c1t3 ... I recently loaded recent pachtes which deal with ufs ... ...
      (SunManagers)
    • Re: Downgrade FreeBSD 5.1 or 5.2 -> 4.9
      ... It helps to use UFS1 file systems. ... Probably have UFS issues, but I don't ... the way -CURRENT's fsck left things. ... I do not "unsubscribe" from email "services" to which I have not explicitly ...
      (freebsd-current)