NTFS_DIR_OPEN

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

 

NAME

ntfs_dir_open - called when an inode is about to be opened  

SYNOPSIS

"SYNOPSIS"

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

ARGUMENTS

vi
inode to be opened
filp
file structure describing the inode
 

DESCRIPTION

Limit directory 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 directories. It would be better to allow the user to read the accessible part of the directory 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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

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