mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
56a8aca83a
Whenever file is created, the vnode_create_vobject() function will try to determine its size by calling vn_getsize_locked() as size 0 is ambigious: it means either the file size is 0 or the file size is unknown. Introduce special value for the size argument: VNODE_NO_SIZE. Only when it is given, the vnode_create_vobject() will try to obtain file's size on its own. Introduce dedicated vnode_disk_create_vobject() for use by g_vfs_open(), so we don't have to call vn_isdisk() in the common case (for regular files). Handle the case of mediasize==0 in g_vfs_open(). Reviewed by: alc, kib, markj, olce Approved by: oshogbo (mentor), allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D45244 |
||
---|---|---|
.. | ||
ext2_acl.c | ||
ext2_acl.h | ||
ext2_alloc.c | ||
ext2_balloc.c | ||
ext2_bmap.c | ||
ext2_csum.c | ||
ext2_dinode.h | ||
ext2_dir.h | ||
ext2_extattr.c | ||
ext2_extattr.h | ||
ext2_extents.c | ||
ext2_extents.h | ||
ext2_extern.h | ||
ext2_hash.c | ||
ext2_htree.c | ||
ext2_inode.c | ||
ext2_inode_cnv.c | ||
ext2_lookup.c | ||
ext2_mount.h | ||
ext2_subr.c | ||
ext2_vfsops.c | ||
ext2_vnops.c | ||
ext2fs.h | ||
fs.h | ||
htree.h | ||
inode.h |