DragonFly BSD
DragonFly users List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: bug in du: truncates filenames


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Dec 2011 15:05:16 -0800 (PST)

:I'm running du on snapshots to see how much space is taken by work directories 
:(which will stick around for over another month; the downloaded tarballs will 
:disappear in just a few days). I got this error:
:
:# du -s /var/hammer/usr/snap-20111?11*/pkgsrc/
:du: /var/hammer/usr/snap-20111111-0501/pkgsrc/x11/xterm/work/xterm-259/xtermcfg.h: 
:No such file or directory
:du: /var/hammer/usr/snap-20111111-0501/pkgsrc/x11/xterm/work/xterm-259/Makefile: 
:No such file or directory
:
:I checked the directory; the files are actually Makefile.in and xtermcfg.hin . 
:It's not simply truncating the filename to a fixed length, since there's a 
:file named xterm.log.html , which is longer. Any idea what's going on?
:
:Pierre

    What's probably happening is the snapshot caught a flush inbetween its
    directory entry creation and its inode creation.  There is probably a
    directory entry for the files in question but no inode.

    It isn't supposed to happen but does sometimes.  It's a bug in HAMMER
    that I haven't found yet.

    If you cd into the snapshot and ls

    cd /var/hammer/usr/snap-20111111-0501/pkgsrc/x11/xterm/work/xterm-259
    ls

    You should see the 'ls' program complain about a missing 'Makefile'.

						-Matt



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