.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "NTFS_FILE_OPEN" "" "06 October 2005" "" ""
.SH NAME
ntfs_file_open \- called when an inode is about to be opened
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_file_open (struct inode * \fIvi\fB, struct file * \fIfilp\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvi\fB\fR
inode to be opened
.TP
\fB\fIfilp\fB\fR
file structure describing the inode
.SH "DESCRIPTION"
.PP
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.
.PP
On 64-bit architectures, the check is hopefully optimized away by the
compiler.
.PP
After the check passes, just call \fBgeneric_file_open\fR to do its work.