Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matt-wu/Ext3Fsd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaho Ng <ngkaho1234@gmail.com>2016-05-21 15:12:52 +0300
committerKaho Ng <ngkaho1234@gmail.com>2016-05-21 15:12:52 +0300
commit8cd930800ee12e6c77912cc7f9c44dda7b7969f0 (patch)
tree3f1c4e9492e3de5d640f29ca242f3fea2b5b3083 /Ext3Fsd
parentb75db3a91f36ae7643efed926eb91062c984ff7c (diff)
EA: remove all existing EA entries in Ext2SetEa
Diffstat (limited to 'Ext3Fsd')
-rw-r--r--Ext3Fsd/ea.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Ext3Fsd/ea.c b/Ext3Fsd/ea.c
index f790502..64df7cf 100644
--- a/Ext3Fsd/ea.c
+++ b/Ext3Fsd/ea.c
@@ -528,6 +528,13 @@ Ext2SetEa (
XattrRefAcquired = TRUE;
+ //
+ // Remove all existing EA entries.
+ //
+ ext4_xattr_purge_items(&xattr_ref);
+ xattr_ref.dirty = TRUE;
+ Status = STATUS_SUCCESS;
+
// Iterate the whole EA buffer to do inspection
for (FullEa = (PFILE_FULL_EA_INFORMATION)UserBuffer;
FullEa < (PFILE_FULL_EA_INFORMATION)&UserBuffer[UserBufferLength];