* Added a new flag for write stat: B_STAT_SIZE_INSECURE that allows a
file system to not fill newly created space with zeros. BFile::SetSize() now uses this, while [f]truncate() does not. This is only a temporary work-around until BFS supports sparse files. * Apps that want to reserve space to fill up later should use BFile::SetSize() for now, as this will be a lot faster than [f]truncate(). * cache_io() and the functions below now use a special mode when you pass in a NULL buffer: for read access, the cache is only populated (useful for prefetching), for write access, the file is filled with zeros. * Implemented BFS's Inode::FillGapWithZeros() using this method now. * Removed extraneous white space. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24555 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -874,6 +874,9 @@
|
||||
#define fs_cookie fssh_fs_cookie
|
||||
#define fs_vnode fssh_fs_vnode
|
||||
|
||||
/* additional flags passed to write_stat() */
|
||||
#define B_STAT_SIZE_INSECURE FSSH_B_STAT_SIZE_INSECURE
|
||||
|
||||
/* passed to write_fs_info() */
|
||||
#define FS_WRITE_FSINFO_NAME FSSH_FS_WRITE_FSINFO_NAME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user