Renamed ntfs_attr_consistent() as ntfs_attr_inconsistent()
The original name was error prone while checking the condition.edge.strict_endians^2
parent
bb4456d339
commit
45141516d7
|
@ -398,7 +398,7 @@ extern int ntfs_attr_data_write(ntfs_inode *ni,
|
|||
const char *buf, size_t size, off_t offset);
|
||||
extern int ntfs_attr_shrink_size(ntfs_inode *ni, ntfschar *stream_name,
|
||||
int stream_name_len, off_t offset);
|
||||
extern int ntfs_attr_consistent(const ATTR_RECORD *a, const MFT_REF mref);
|
||||
extern int ntfs_attr_inconsistent(const ATTR_RECORD *a, const MFT_REF mref);
|
||||
|
||||
#endif /* defined _NTFS_ATTRIB_H */
|
||||
|
||||
|
|
|
@ -3402,7 +3402,7 @@ not_found:
|
|||
* -1 with errno = EIO otherwise
|
||||
*/
|
||||
|
||||
int ntfs_attr_consistent(const ATTR_RECORD *a, const MFT_REF mref)
|
||||
int ntfs_attr_inconsistent(const ATTR_RECORD *a, const MFT_REF mref)
|
||||
{
|
||||
const FILE_NAME_ATTR *fn;
|
||||
const INDEX_ROOT *ir;
|
||||
|
|
|
@ -286,7 +286,7 @@ int ntfs_mft_record_check(const ntfs_volume *vol, const MFT_REF mref,
|
|||
&& (le32_to_cpu(a->type) >= le32_to_cpu(previous_type))) {
|
||||
if ((le32_to_cpu(a->length) <= (u32)space)
|
||||
&& !(le32_to_cpu(a->length) & 7)) {
|
||||
if (!ntfs_attr_consistent(a, mref)) {
|
||||
if (!ntfs_attr_inconsistent(a, mref)) {
|
||||
previous_type = a->type;
|
||||
offset += le32_to_cpu(a->length);
|
||||
space -= le32_to_cpu(a->length);
|
||||
|
|
Loading…
Reference in New Issue