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

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 10 14:03:19 PDT 2020


commit c30fc256bb7d8032dc474b90959a85bbe6812905
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/c30fc256bb7d8032dc474b90959a85bbe6812905


-- 
DragonFly BSD source repository


More information about the Commits mailing list