Ext2 File Operations

The file operations specific to the Ext2 filesystem are listed in Table 17-9. As you can see, several VFS methods are implemented by generic functions that are common to many filesystems. The addresses of these methods are stored in the ext2_file_operations table.

Table 17-9. Ext2 file operations

VFS file operation

Ext2 method

llseek

generic file llseek( )

read

generic file read( )

write

generic file write( )

ioctl

ext2 ioctl( )

mmap

generic file mmap( )

open

generic file open( )

release

ext2 release file( )

fsync

ext2 sync file( )

Notice that the Ext2's read and write methods are implemented by the generic_file_read( ) and generic_file_write( ) functions, respectively. These are described in Section 15.1.1 and Section 15.1.3.

I [email protected] RuBoard

Continue reading here: Managing Ext2 Disk Space

Was this article helpful?

0 0