From 2eb5052480902e83f3870934cb73664d2aa59edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Sat, 11 Feb 2017 09:11:51 +0100 Subject: [PATCH] Decoded the reparse tag for deduplication in ntfsinfo Take into account the reparse tag for deduplication and display its meaning --- ntfsprogs/ntfsinfo.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/ntfsprogs/ntfsinfo.c b/ntfsprogs/ntfsinfo.c index 92684d7f..18d001af 100644 --- a/ntfsprogs/ntfsinfo.c +++ b/ntfsprogs/ntfsinfo.c @@ -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); }