From 45ba639781ec4d0f022ac5e58bca0245dca38a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 11 Aug 2017 09:52:54 +0200 Subject: [PATCH] Decoded more reparse tags in ntfsinfo Displayed some information in ntfsinfo output about a few new types of reparse point brought by Windows 10. --- include/ntfs-3g/layout.h | 4 ++++ ntfsprogs/ntfsinfo.c | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/include/ntfs-3g/layout.h b/include/ntfs-3g/layout.h index 880d54b8..1df07b98 100644 --- a/include/ntfs-3g/layout.h +++ b/include/ntfs-3g/layout.h @@ -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; diff --git a/ntfsprogs/ntfsinfo.c b/ntfsprogs/ntfsinfo.c index 18d001af..94660b95 100644 --- a/ntfsprogs/ntfsinfo.c +++ b/ntfsprogs/ntfsinfo.c @@ -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;