Annotation of wikisrc/projects/project/ffs-fallocate.mdwn, revision 1.1
1.1 ! dholland 1: [[!template id=project
! 2:
! 3: title="fallocate for FFS"
! 4:
! 5: contact="""
! 6: [tech-kern](mailto:tech-kern@NetBSD.org)
! 7: """
! 8:
! 9: mentors="""
! 10: """
! 11:
! 12: category="filesystems"
! 13: difficulty="easy"
! 14: duration="1-2 months"
! 15:
! 16: description="""
! 17: The fallocate/posix_fallocate system call, and the file-system-level
! 18: VOP_FALLOCATE operation backing it, allow preallocating underlying
! 19: storage for files before writing into them.
! 20:
! 21: This is useful for improving the physical layout of files that are
! 22: written in arbitrary order, such as files downloaded by bittorrent; it
! 23: also allows failing up front if disk space runs out while saving a
! 24: file.
! 25:
! 26: This functionality is not currently implemented for FFS; implement it.
! 27: (For regular files.)
! 28: There is not much to this besides running the existing block
! 29: allocation logic in a loop.
! 30: (Note though that as the loop might take a while for large
! 31: allocations, it's important to check for signals periodically to allow
! 32: the operation to be interrupted.)
! 33:
! 34: """
! 35:
! 36: ]]
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb