diff --git a/include/ntfs/attrib.h b/include/ntfs/attrib.h index ca209b13..ccaceaca 100644 --- a/include/ntfs/attrib.h +++ b/include/ntfs/attrib.h @@ -273,6 +273,8 @@ extern int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, extern int ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPES type); +extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size); + extern int ntfs_resident_attr_value_resize(MFT_RECORD *m, ATTR_RECORD *a, const u32 newsize); diff --git a/libntfs/attrib.c b/libntfs/attrib.c index fcb172b4..d6d17e5c 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -2238,7 +2238,7 @@ int ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPES type) * Warning: If you make a record smaller without having copied all the data you * are interested in the data may be overwritten! */ -static int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) +int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) { /* Align to 8 bytes, just in case the caller hasn't. */ new_size = (new_size + 7) & ~7;