added a file system call preallocate() as described in #6285, currently unused

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39006 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2010-10-18 18:48:54 +00:00
parent 934c820ce8
commit d63f4274b6
17 changed files with 19 additions and 0 deletions

View File

@ -167,6 +167,8 @@ struct fs_vnode_ops {
struct stat* stat);
status_t (*write_stat)(fs_volume* volume, fs_vnode* vnode,
const struct stat* stat, uint32 statMask);
status_t (*preallocate)(fs_volume* volume, fs_vnode* vnode,
off_t pos, off_t length);
/* file operations */
status_t (*create)(fs_volume* volume, fs_vnode* dir, const char* name,

View File

@ -185,6 +185,8 @@ struct fssh_fs_vnode_ops {
struct fssh_stat *stat);
fssh_status_t (*write_stat)(fssh_fs_volume *volume, fssh_fs_vnode *vnode,
const struct fssh_stat *stat, uint32_t statMask);
fssh_status_t (*preallocate)(fssh_fs_volume* volume, fssh_fs_vnode* vnode,
fssh_off_t pos, fssh_off_t length);
/* file operations */
fssh_status_t (*create)(fssh_fs_volume *volume, fssh_fs_vnode *dir,

View File

@ -2354,6 +2354,7 @@ fs_vnode_ops gBFSVnodeOps = {
&bfs_access,
&bfs_read_stat,
&bfs_write_stat,
NULL, // fs_preallocate
/* file operations */
&bfs_create,

View File

@ -2201,6 +2201,7 @@ fs_vnode_ops gCDDAVnodeOps = {
NULL, // fs_access()
cdda_read_stat,
NULL, // fs_write_stat()
NULL, // fs_preallocate()
// file
NULL, // fs_create()

View File

@ -1648,6 +1648,7 @@ fs_vnode_ops gExt2VnodeOps = {
&ext2_access,
&ext2_read_stat,
&ext2_write_stat,
NULL, // fs_preallocate
/* file operations */
&ext2_create,

View File

@ -1351,6 +1351,7 @@ fs_vnode_ops gFATVnodeOps = {
&dosfs_access,
&dosfs_rstat,
&dosfs_wstat,
NULL, // &fs_preallocate,
/* file operations */
&dosfs_create,

View File

@ -1627,6 +1627,7 @@ static fs_vnode_ops sGoogleFSVnodeOps = {
&googlefs_access,
&googlefs_rstat,
&googlefs_wstat,
NULL, // fs_preallocate
/* file operations */
&googlefs_create,

View File

@ -733,6 +733,7 @@ fs_vnode_ops gISO9660VnodeOps = {
&fs_access,
&fs_read_stat,
NULL,
NULL,
/* file */
NULL,

View File

@ -1679,6 +1679,7 @@ static fs_vnode_ops sOverlayVnodeOps = {
&overlay_access,
&overlay_read_stat,
&overlay_write_stat,
NULL, // fs_preallocate
/* file */
&overlay_create,

View File

@ -715,6 +715,7 @@ static fs_vnode_ops sOverlayVnodeOps = {
&overlay_access,
&overlay_read_stat,
&overlay_write_stat,
NULL, // fs_preallocate
/* file */
&overlay_create,

View File

@ -2228,6 +2228,7 @@ static fs_vnode_ops sOverlayVnodeOps = {
&overlay_access,
&overlay_read_stat,
&overlay_write_stat,
NULL, // fs_preallocate
/* file */
&overlay_create,

View File

@ -2505,6 +2505,7 @@ fs_vnode_ops sNFSVnodeOps = {
&fs_access,
&fs_rstat,
&fs_wstat,
NULL, // fs_preallocate()
/* file operations */
&fs_create,

View File

@ -1122,6 +1122,7 @@ fs_vnode_ops gPackageFSVnodeOps = {
&packagefs_access,
&packagefs_read_stat,
NULL, // write_stat,
NULL, // preallocate,
// file operations
NULL, // create,

View File

@ -2100,6 +2100,7 @@ static file_system_module_info sRamFSModuleInfo = {
&ramfs_access,
&ramfs_read_stat,
&ramfs_write_stat,
NULL, // &ramfs_preallocate,
/* file operations */
&ramfs_create,

View File

@ -783,6 +783,7 @@ fs_vnode_ops gReiserFSVnodeOps = {
&reiserfs_access,
&reiserfs_read_stat,
NULL, // &reiserfs_write_stat,
NULL, // &reiserfs_preallocate,
/* file operations */
NULL, // &reiserfs_create,

View File

@ -671,6 +671,7 @@ fs_vnode_ops gUDFVnodeOps = {
&udf_access,
&udf_read_stat,
NULL, // write_stat
NULL, // preallocate
/* file operations */
NULL, // create

View File

@ -1209,6 +1209,7 @@ fs_vnode_ops gUserlandFSVnodeOps = {
&userlandfs_access,
&userlandfs_read_stat,
&userlandfs_write_stat,
NULL, // preallocate()
// file operations
&userlandfs_create,