git: sbin/newfs_hammer: Adjust output of -E

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:36 PDT 2015


commit 059d6b076503ac191b9d4a6a3391f6490bb77e96
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Sep 22 13:34:24 2015 +0900

    sbin/newfs_hammer: Adjust output of -E
    
    This commit adjusts and aligns output of -E option of
    newfs_hammer with the previous line.
    
    It should use vol->type instead of typing "Device" in
    lowercase, since this is what the vol->type is really
    made for.
    
    ===== before this commit
      # newfs_hammer -E -L TEST /dev/da1 /dev/da2 /dev/da3
      Volume 0 DEVICE /dev/da1        size 111.79GB
      Trimming Device:/dev/da1, sectors (0 -234441648)
      Volume 1 DEVICE /dev/da2        size 111.79GB
      Trimming Device:/dev/da2, sectors (0 -234441648)
      Volume 2 DEVICE /dev/da3        size 111.79GB
      Trimming Device:/dev/da3, sectors (0 -234441648)
      ...
    
    ===== with this commit, looks more sane
      # newfs_hammer -E -L TEST /dev/da1 /dev/da2 /dev/da3
      Volume 0 DEVICE /dev/da1        size 111.79GB
      Trimming DEVICE /dev/da1, sectors (0 -234441648)
      Volume 1 DEVICE /dev/da2        size 111.79GB
      Trimming DEVICE /dev/da2, sectors (0 -234441648)
      Volume 2 DEVICE /dev/da3        size 111.79GB
      Trimming DEVICE /dev/da3, sectors (0 -234441648)
      ...

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/059d6b076503ac191b9d4a6a3391f6490bb77e96


-- 
DragonFly BSD source repository



More information about the Commits mailing list