DragonFly-2.3.0.384.g574066 master sbin/hammer cmd_cleanup.c

Matthew Dillon dillon at apollo.backplane.com
Thu Mar 12 08:45:32 PDT 2009


:On Wed, Mar 11, 2009 at 10:47:21AM -0700, Matthew Dillon wrote:
:>     Extract PFS null mounts from anywhere in the filesystem, instead of just
:>     from the /pfs subdirectory.
:>     
:>     Submitted-by: pgeorgi (via bugs)
:> 
:> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/574066d3d9513d57ba17e36786680e7d4f9dc032
:
:Actually, /@@-1:%05d is also a valid string representation of tid for
:a PFS, according to hammer_str_to_tid().  I prefer this shorter form
:and use this for null mounts so as it won't take too much space
:on output from `df', I mean,
:
:Filesystem         1K-blocks     Used    Avail Capacity  Mounted on
:/HAMMER/@@0xffffffffffffffff:00001 104398848 79233024 25165824    76%    /home
:
:vs
:
:Filesystem         1K-blocks     Used    Avail Capacity  Mounted on
:/HAMMER/@@-1:00001 104398848 79233024 25165824    76%    /home
:
:Adding a support for this alternative form to hammer(8) is easy,
:but another idea is to add a support to `df' command so as it can
:display PFS'es nicely (not sure how I'd define the `nice'-ness though).
:
:Cheers.

    I'll add support for the -1 form now.  For that matter, I will also
    change hammer pfs-master to create the softlink using the -1 form.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Commits mailing list