Skip to content

fallocate system call

Amit K. Arora linux-ext4 linux-fsdevel linux-xfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7manpage for fallocate+0 -03 replies
2/7fallocate() implementation in i386, x86_64 and powerpcarch/i386/kernel/syscall_table.S arch/powerpc/kernel/sys_ppc32.c arch/x86_64/ia32/ia32entry.S +8 more+124 -26 replies
3/7support new modes in fallocatefs/open.c include/linux/fs.h+20 -140 replies
4/7ext4: fallocate support in ext4fs/ext4/extents.c fs/ext4/file.c include/linux/ext4_fs.h +1 more+233 -410 replies
5/7ext4: write support for preallocated blocksfs/ext4/extents.c include/linux/ext4_fs_extents.h+225 -320 replies
6/7ext4: support new modes in ext4fs/ext4/extents.c+9 -50 replies
7/7ext4: change for better extent-to-group alignmentfs/ext4/extents.c include/linux/ext4_fs_extents.h+49 -60 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchJames Morris
1/7
2/7A-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7][TAKE6] fallocate system call

This is the latest fallocate patchset and is rebased to 2.6.22.

Following are the changes from TAKE5:
1) Rebased to 2.6.22
2) Added compat wrapper for x86_64
3) Dropped s390 and ia64 patches, since the platform maintaners can add the support for fallocate once it is in mainline.
4) Added a change suggested by Andreas for better extent-to-group alignment in ext4 (Patch 6/6). Please refer following post:
http://www.mail-archive.com/[email protected]/msg02445.html
5) Renamed mode flags and values from "FA_" to "FALLOC_"
6) Added manpage (updated version of the one initially submitted by David Chinner).

Todos:
-----
1> Implementation on other architectures (other than i386, x86_64,
and ppc64). s390(x) and ia64 patches are ready and will be pushed by platform maintaners when the fallocate is in mainline.
2> A generic file system operation to handle fallocate
(generic_fallocate), for filesystems that do _not_ have the fallocate inode operation implemented.
3> Changes to glibc,
a) to support fallocate() system call
b) to make posix_fallocate() and posix_fallocate64() call fallocate()
4> A testcase to test the system call. Will post it soon.

Following patches follow:
Patch 1/7 : manpage for fallocate
Patch 2/7 : fallocate() implementation in i386, x86_64 and powerpc Patch 3/7 : support new modes in fallocate
Patch 4/7 : ext4: fallocate support in ext4
Patch 5/7 : ext4: write support for preallocated blocks Patch 6/7 : ext4: support new modes in ext4
Patch 7/7 : ext4: change for better extent-to-group alignment

--
Regards,
Amit Arora