NTFS_EXTENT_MFT_RECORD_FREE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ntfs_extent_mft_record_free - free an extent mft record on an ntfs volume  

SYNOPSIS

"SYNOPSIS"

int ntfs_extent_mft_record_free (ntfs_inode * ni, MFT_RECORD * m);  

ARGUMENTS

ni
ntfs inode of the mapped extent mft record to free
m
mapped extent mft record of the ntfs inode ni
 

DESCRIPTION

Free the mapped extent mft record m of the extent ntfs inode ni.

Note that this function unmaps the mft record and closes and destroys ni internally and hence you cannot use either ni nor m any more after this function returns success.

On success return 0 and on error return -errno. ni and m are still valid in this case and have not been freed.

For some errors an error message is displayed and the success code 0 is returned and the volume is then left dirty on umount. This makes sense in case we could not rollback the changes that were already done since the caller no longer wants to reference this mft record so it does not matter to the caller if something is wrong with it as long as it is properly detached from the base inode.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:33 GMT, October 09, 2005