How to quickly determine if UFS2 FS is "clean" from command
david at catwhisker.org
Thu Dec 25 22:39:47 PST 2008
On Fri, Dec 26, 2008 at 09:35:42AM +0300, Sergey Zaharchenko wrote:
> Some of the stuff you want can be found here:
> root at shark:~# file -s /dev/ufs/home
> /dev/ufs/home: Unix Fast File system [v2] (little-endian) last mounted on /home, volume name home, last written at Fri Dec 26 06:33:07 2008, clean flag 0, readonly flag 0, number of blocks 13631488, number of data blocks 13202246, number of cylinder groups 145, block size 16384, fragment size 2048, average file size 16384, average number of files in dir 64, pending blocks to free 4, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization
> You probably want the clean flag (which is 0 for me because that device
> node is mounted).
Very nice; thanks! Seems that both ffsinfo(8) & file(1) can do the job
quickly; dumpfs(8) can do it, but takes around 33 seconds for a 400 GB
file system (because it also dumps the cylinder groups).
David H. Wolfskill david at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20081226/80812f88/attachment.pgp
More information about the freebsd-hackers