Take into account the reparse tag for deduplication and display its meaning
{
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);
}