diff options
author | Kaho Ng <ngkaho1234@gmail.com> | 2016-05-21 15:12:52 +0300 |
---|---|---|
committer | Kaho Ng <ngkaho1234@gmail.com> | 2016-05-21 15:12:52 +0300 |
commit | 8cd930800ee12e6c77912cc7f9c44dda7b7969f0 (patch) | |
tree | 3f1c4e9492e3de5d640f29ca242f3fea2b5b3083 | |
parent | b75db3a91f36ae7643efed926eb91062c984ff7c (diff) |
EA: remove all existing EA entries in Ext2SetEa
-rw-r--r-- | Ext3Fsd/ea.c | 7 |
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]; |