Export ntfs_attr_record_resize.

(Logical change 1.539)
edge.strict_endians
cantab.net!aia21 2004-09-09 13:56:46 +00:00
parent 3da1cc0cb9
commit cbbd254b20
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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;