mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Fixed wrong size (quota_charged, usn)
This commit is contained in:
parent
5689ebd55d
commit
aa54558345
@ -156,8 +156,8 @@ struct _ntfs_inode {
|
||||
/* only if NI_v3_Extensions is set in state */
|
||||
le32 owner_id;
|
||||
le32 security_id;
|
||||
le32 quota_charged;
|
||||
le32 usn;
|
||||
le64 quota_charged;
|
||||
le64 usn;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
|
@ -1210,8 +1210,8 @@ static ntfs_inode *__ntfs_create(ntfs_inode *dir_ni, le32 securid,
|
||||
set_nino_flag(ni, v3_Extensions);
|
||||
ni->owner_id = si->owner_id = 0;
|
||||
ni->security_id = si->security_id = securid;
|
||||
ni->quota_charged = si->quota_charged = 0;
|
||||
ni->usn = si->usn = 0;
|
||||
ni->quota_charged = si->quota_charged = const_cpu_to_le64(0);
|
||||
ni->usn = si->usn = const_cpu_to_le64(0);
|
||||
} else
|
||||
clear_nino_flag(ni, v3_Extensions);
|
||||
if (!S_ISREG(type) && !S_ISDIR(type)) {
|
||||
|
@ -1055,8 +1055,8 @@ static int update_secur_descr(ntfs_volume *vol,
|
||||
res = ntfs_attr_truncate(na,
|
||||
(s64)sizeof(STANDARD_INFORMATION));
|
||||
ni->owner_id = const_cpu_to_le32(0);
|
||||
ni->quota_charged = const_cpu_to_le32(0);
|
||||
ni->usn = const_cpu_to_le32(0);
|
||||
ni->quota_charged = const_cpu_to_le64(0);
|
||||
ni->usn = const_cpu_to_le64(0);
|
||||
ntfs_attr_remove(ni,
|
||||
AT_SECURITY_DESCRIPTOR,
|
||||
AT_UNNAMED, 0);
|
||||
@ -1131,8 +1131,8 @@ static int upgrade_secur_desc(ntfs_volume *vol, const char *path,
|
||||
res = ntfs_attr_truncate(na,
|
||||
(s64)sizeof(STANDARD_INFORMATION));
|
||||
ni->owner_id = const_cpu_to_le32(0);
|
||||
ni->quota_charged = const_cpu_to_le32(0);
|
||||
ni->usn = const_cpu_to_le32(0);
|
||||
ni->quota_charged = const_cpu_to_le64(0);
|
||||
ni->usn = const_cpu_to_le64(0);
|
||||
ntfs_attr_remove(ni, AT_SECURITY_DESCRIPTOR,
|
||||
AT_UNNAMED, 0);
|
||||
set_nino_flag(ni, v3_Extensions);
|
||||
|
Loading…
Reference in New Issue
Block a user