Fix bad native->little endian byteswap of little endian value.

This commit is contained in:
Erik Larsson 2017-03-21 11:58:30 +01:00
parent 65f63fe2b3
commit f0d3751c98
2 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ static int clear_sparse(ntfs_attr *na, const char *name)
ctx->attr->data_size = cpu_to_sle64(na->data_size);
ctx->attr->initialized_size
= cpu_to_sle64(na->initialized_size);
ctx->attr->flags = cpu_to_le16(na->data_flags);
ctx->attr->flags = na->data_flags;
ctx->attr->compression_unit = 0;
ntfs_inode_mark_dirty(ctx->ntfs_ino);
NInoFileNameSetDirty(na->ni);

View File

@ -2397,7 +2397,7 @@ static void truncate_badclust_bad_attr(ntfs_resize_t *resize)
ctx = resize->ctx;
ctx->attr->data_size = cpu_to_sle64(na->data_size);
ctx->attr->initialized_size = cpu_to_sle64(na->initialized_size);
ctx->attr->flags = cpu_to_le16(na->data_flags);
ctx->attr->flags = na->data_flags;
ctx->attr->compression_unit = 0;
ntfs_inode_mark_dirty(ctx->ntfs_ino);
NInoFileNameSetDirty(na->ni);