From cbbd254b20845ae621b8987cf4222db135a61d19 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Thu, 9 Sep 2004 13:56:46 +0000 Subject: [PATCH] Export ntfs_attr_record_resize. (Logical change 1.539) --- include/ntfs/attrib.h | 2 ++ libntfs/attrib.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;