[ext2fs] update ext2fs to latest

* Also drop nt_io_manager() as a function call and just use a direct ref to the manager.
This commit is contained in:
Pete Batard 2021-01-09 16:14:14 +00:00
parent fce645543f
commit 3056d54cc1
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
31 changed files with 1365 additions and 369 deletions

View file

@ -1550,14 +1550,15 @@ errcode_t ext2fs_xattr_set(struct ext2_xattr_handle *h,
new_value, &value_len);
if (ret)
goto out;
} else
} else if (value_len)
memcpy(new_value, value, value_len);
/* Imitate kernel behavior by skipping update if value is the same. */
for (x = h->attrs; x < h->attrs + h->count; x++) {
if (!strcmp(x->name, name)) {
if (!x->ea_ino && x->value_len == value_len &&
!memcmp(x->value, new_value, value_len)) {
(!value_len ||
!memcmp(x->value, new_value, value_len))) {
ret = 0;
goto out;
}