sbin/hammer: Remove irrelevant if(S_ISLNK()) case
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 19 Apr 2015 10:51:41 +0000 (19:51 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 20 Apr 2015 13:55:42 +0000 (22:55 +0900)
commit64df1e745ba368af5264cc66bdc028d01e46feda
treee825438f1acf42ed0a878807172973fe0603105c
parentf111635e8fa00098f1e6128648b194b7338e62c9
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).
sbin/hammer/cmd_snapshot.c