mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Fix bad native->little endian byteswap of little endian value.
This commit is contained in:
parent
65f63fe2b3
commit
f0d3751c98
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user