__GET_NR_FREE_MFT_RECORDS

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

 

NAME

__get_nr_free_mft_records - return the number of free inodes on a volume  

SYNOPSIS

"SYNOPSIS"

unsigned long __get_nr_free_mft_records (ntfs_volume * vol, s64 nr_free, const pgoff_t max_index);  

ARGUMENTS

vol
ntfs volume for which to obtain free inode count
nr_free
number of mft records in filesystem
max_index
maximum number of pages containing set bits
 

DESCRIPTION

Calculate the number of free mft records (inodes) on the mounted NTFS volume vol. We actually calculate the number of mft records in use instead because this allows us to not care about partial pages as these will be just zero filled and hence not be counted as allocated mft record.

If any pages cannot be read we assume all mft records in the erroring pages are in use. This means we return an underestimate on errors which is better than an overestimate.  

NOTE

Caller must hold mftbmp_lock rw_semaphore for reading or writing.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

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