git: hammer2 - Enhance pfs-list and pfs-delete

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Jun 5 12:38:10 PDT 2020


commit 83d909835be083f0b70712d62133b0253edc5784
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jun 5 12:33:26 2020 -0700

    hammer2 - Enhance pfs-list and pfs-delete
    
    * Enhance pfs-list to list PFSs available across all mounted hammer2
      filesystems instead of just the current directory's mount.  A
      specific mount may be specified via -s mountpt.
    
    * Enhance pfs-delete to look for the PFS name across all mounted
      hammer2 filesystems instead of just the current directory's mount.
    
      As a safety, pfs-delete will refuse to delete PFS names which are
      duplicated across multiple mounts.  A specific mount may be specified
      via -s mountpt.

Summary of changes:
 sbin/hammer2/cmd_pfs.c      | 80 +++++++++++++++++++++++++++++++++++++--------
 sbin/hammer2/hammer2.8      | 30 ++++++++++++-----
 sbin/hammer2/hammer2.h      |  4 +--
 sbin/hammer2/hammer2_subs.h |  3 ++
 sbin/hammer2/main.c         |  2 +-
 sbin/hammer2/subs.c         | 45 +++++++++++++++++++++++++
 6 files changed, 139 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/83d909835be083f0b70712d62133b0253edc5784


-- 
DragonFly BSD source repository


More information about the Commits mailing list