Decoded the reparse tag for deduplication in ntfsinfo

Take into account the reparse tag for deduplication and display its meaning
This commit is contained in:
Jean-Pierre André 2017-02-11 09:11:51 +01:00
parent 30ae872b89
commit 2eb5052480

View 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);
}