git: sbin/hammer: Remove irrelevant if(S_ISLNK()) case

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Apr 20 07:06:56 PDT 2015


commit 64df1e745ba368af5264cc66bdc028d01e46feda
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Apr 19 19:51:41 2015 +0900

    sbin/hammer: Remove irrelevant if(S_ISLNK()) case
    
    - Remove if(S_ISLNK()) case for hammer snap since it never matches.
    
    - Also note it shouldn't be matching S_ISLNK() in the first place.
      If it does match hammer snap|snaplo|snapq commands will remove
      a symlink to the existing snapshot and relink to the new snapshot
      which results losing a reference to the old snapshot (although
      the old snapshot is still accessible as HAMMER's snapshot is just
      a pointer to the filesystem as of certain tid that is resolved
      when accessed).

Summary of changes:
 sbin/hammer/cmd_snapshot.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/64df1e745ba368af5264cc66bdc028d01e46feda


-- 
DragonFly BSD source repository


More information about the Commits mailing list