OSDN Git Service

Decoded the reparse tag for deduplication in ntfsinfo
authorJean-Pierre André <jpandre@users.sourceforge.net>
Sat, 11 Feb 2017 08:11:51 +0000 (09:11 +0100)
committerJean-Pierre André <jpandre@users.sourceforge.net>
Sat, 11 Feb 2017 08:11:51 +0000 (09:11 +0100)
Take into account the reparse tag for deduplication and display its meaning

ntfsprogs/ntfsinfo.c

index 92684d7..18d001a 100644 (file)
@@ -412,16 +412,23 @@ static const char *reparse_type_name(le32 tag)
 {
        const char *name;
 
-       if (tag == IO_REPARSE_TAG_MOUNT_POINT)
+       switch (tag) {
+       case IO_REPARSE_TAG_MOUNT_POINT :
                name = " (mount point)";
-       else
-               if (tag == IO_REPARSE_TAG_SYMLINK)
-                       name = " (symlink)";
-               else
-                       if (tag == IO_REPARSE_TAG_WOF)
-                               name = " (Wof compressed)";
-                       else
-                               name = "";
+               break;
+       case IO_REPARSE_TAG_SYMLINK :
+               name = " (symlink)";
+               break;
+       case IO_REPARSE_TAG_WOF :
+               name = " (Wof compressed)";
+               break;
+       case IO_REPARSE_TAG_DEDUP :
+               name = " (deduplicated)";
+               break;
+       default :
+               name = "";
+               break;
+       }
        return (name);
 }