DragonFly commits List (threaded) for 2009-03
DragonFly BSD
DragonFly commits List (threaded) for 2009-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Thu, 12 Mar 2009 20:56:43 +0900

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.



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