NTFS_FILE_OPEN

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

 

NAME

ntfs_file_open - called when an inode is about to be opened  

SYNOPSIS

"SYNOPSIS"

int ntfs_file_open (struct inode * vi, struct file * filp);  

ARGUMENTS

vi
inode to be opened
filp
file structure describing the inode
 

DESCRIPTION

Limit file size to the page cache limit on architectures where unsigned long is 32-bits. This is the most we can do for now without overflowing the page cache page index. Doing it this way means we don't run into problems because of existing too large files. It would be better to allow the user to read the beginning of the file but I doubt very much anyone is going to hit this check on a 32-bit architecture, so there is no point in adding the extra complexity required to support this.

On 64-bit architectures, the check is hopefully optimized away by the compiler.

After the check passes, just call generic_file_open to do its work.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 04:40:58 GMT, October 06, 2005