Decoded more reparse tags in ntfsinfo

Displayed some information in ntfsinfo output about a few new types of
reparse point brought by Windows 10.
This commit is contained in:
Jean-Pierre André 2017-08-11 09:52:54 +02:00
parent 1611b21908
commit 45ba639781
2 changed files with 15 additions and 2 deletions

View File

@ -2433,7 +2433,11 @@ typedef enum {
IO_REPARSE_TAG_SIS = const_cpu_to_le32(0x80000007),
IO_REPARSE_TAG_SYMLINK = const_cpu_to_le32(0xA000000C),
IO_REPARSE_TAG_WIM = const_cpu_to_le32(0x80000008),
IO_REPARSE_TAG_DFM = const_cpu_to_le32(0x80000016),
IO_REPARSE_TAG_WOF = const_cpu_to_le32(0x80000017),
IO_REPARSE_TAG_WCI = const_cpu_to_le32(0x80000018),
IO_REPARSE_TAG_GVFS = const_cpu_to_le32(0x9000001C),
IO_REPARSE_TAG_LX_SYMLINK = const_cpu_to_le32(0xA000001D),
IO_REPARSE_TAG_VALID_VALUES = const_cpu_to_le32(0xf000ffff),
} PREDEFINED_REPARSE_TAGS;

View File

@ -8,7 +8,7 @@
* Copyright (c) 2004-2005 Yuval Fledel
* Copyright (c) 2004-2007 Yura Pakhuchiy
* Copyright (c) 2005 Cristian Klein
* Copyright (c) 2011-2015 Jean-Pierre Andre
* Copyright (c) 2011-2017 Jean-Pierre Andre
*
* This utility will dump a file's attributes.
*
@ -119,7 +119,7 @@ static void version(void)
printf(" 2003 Leonard Norrgård\n");
printf(" 2004-2005 Yuval Fledel\n");
printf(" 2004-2007 Yura Pakhuchiy\n");
printf(" 2011-2014 Jean-Pierre Andre\n");
printf(" 2011-2017 Jean-Pierre Andre\n");
printf("\n%s\n%s%s\n", ntfs_gpl, ntfs_bugs, ntfs_home);
}
@ -425,6 +425,15 @@ static const char *reparse_type_name(le32 tag)
case IO_REPARSE_TAG_DEDUP :
name = " (deduplicated)";
break;
case IO_REPARSE_TAG_WCI :
name = " (Windows container)";
break;
case IO_REPARSE_TAG_NFS :
name = " (NFS symlink)";
break;
case IO_REPARSE_TAG_LX_SYMLINK :
name = " (Linux symlink)";
break;
default :
name = "";
break;