[PATCH v4 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Add support FALLOC_FL_COLLAPSE_RANGE for fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/xfs/xfs_bmap.c | 195 fs/xfs/xfs_bmap.h |5 ++ fs/xfs/xfs_bmap_util.c | 99

[PATCH v4 6/10] xfstest: shared/002: Delayed allocation collapse range

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(002) tries to test various corner cases with delayed extents for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/002 | 65

[PATCH v4 8/10] xfstest: shared/004: Delayed allocation multi collapse

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(004) tries to test various corner cases with delayed extents and pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/004 | 65

[PATCH v4 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Update FALLOC_FL_COLLAPSE_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 21 + 1 file changed, 21 insertions(+) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index ec9011c..69a4dbd 100644

[PATCH v4 7/10] xfstest: shared/003: Multi collapse range tests

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(003) tries to test various corner cases with pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/003 | 65

[PATCH v4 9/10] xfstest: shared/005: Test multiple fallocate collapse

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon We execute collapse range multiple times on same file. Each collapse range call collapses a single alternate block. After the test execution, file will be left with 80 blocks and as much number of extents. We also check for file system consistency after the completion. Signed

[PATCH v4 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This patch series is in response of the following post: http://lwn.net/Articles/556136/ "ext4: introduce two new ioctls" Dave chinner suggested that truncate_block_range (which was one of the ioctls name) should be an fallocate operation and not any fs specific ioctl

[PATCH v4 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Add support FALLOC_FL_COLLAPSE_RANGE for fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/xfs/xfs_bmap.c | 195 fs/xfs/xfs_bmap.h |5 ++ fs/xfs/xfs_bmap_util.c | 99

[PATCH v4 1/10] fs: Add new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Add new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate. updated detailed semantics in comments. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/open.c | 24 +--- include/uapi/linux/falloc.h | 21

[PATCH v4 4/10] xfsprog: xfsio: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Add support FALLOC_FL_COLLAPSE_RANGE for fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Dave Chinner --- io/prealloc.c | 41 +++-- man/man8/xfs_io.8 |6 ++ 2 files changed, 45 insertions

[PATCH v4 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Add support FALLOC_FL_COLLAPSE_RANGE for fallocate Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/ext4/ext4.h |3 + fs/ext4/extents.c | 297 ++- fs/ext4/move_extent.c |2

[PATCH v4 7/10] xfstest: shared/003: Multi collapse range tests

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(003) tries to test various corner cases with pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/003 | 65

[PATCH v4 5/10] xfstest: shared/001: Standard collapse range tests

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(001) tries to test various corner cases for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch | 133 -- common/rc

[PATCH v4 6/10] xfstest: shared/002: Delayed allocation collapse range

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(002) tries to test various corner cases with delayed extents for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/002 | 65

[PATCH v4 9/10] xfstest: shared/005: Test multiple fallocate collapse

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon We execute collapse range multiple times on same file. Each collapse range call collapses a single alternate block. After the test execution, file will be left with 80 blocks and as much number of extents. We also check for file system consistency after the completion. Signed

[PATCH v4 8/10] xfstest: shared/004: Delayed allocation multi collapse

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon This testcase(004) tries to test various corner cases with delayed extents and pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/004 | 65

[PATCH v4 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate

2013-12-08 Thread Namjae Jeon
From: Namjae Jeon Update FALLOC_FL_COLLAPSE_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 21 + 1 file changed, 21 insertions(+) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index ec9011c..69a4dbd 100644

[PATCH v3 3/6] fat: zero out seek range on _fat_get_block

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon For normal buffered write operations, normally if we try to write to an offset > than file size, it does a cont_expand_zero till that offset. Now, in case of fallocated regions, since the blocks are already allocated. So, make it zero out that buffers for those blocks till

[PATCH v3 0/6] fat: additions to support fat_fallocate

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon This patch set provides support for doing fallocate operation on FAT filesystem. After series of review for the the feature The complete functionality is broken down into smaller subsets. v3: - fix i_disksize and mmu_private comments(uninit/initialized) - remove unneeded

[PATCH v3 2/6] fat: add fat_fallocate operation

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon Implement preallocation via the fallocate syscall on VFAT partitions. This patch is based on an earlier patch of the same name which had some issues detailed below and did not get accepted. Refer https://lkml.org/lkml/2007/12/22/130. a) The preallocated space was not

[PATCH v3 1/6] fat: add i_disksize to represent uninitialized size

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon Add i_disksize to represent uninitialized allocated size. And mmu_private represent initialized allocated size. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- fs/fat/cache.c |6 +++--- fs/fat/fat.h |3 ++- fs/fat/file.c |4 +++- fs/fat/inode.c

[PATCH v3 4/6] fat: fallback to buffered write in case of fallocated region on direct IO

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon For normal cases of direct IO write, trying to seek to location greater than file size, makes it fall back to buffered write to fill that region. Similarly, in case for write in Fallocated region, make it fall to buffered write. Signed-off-by: Namjae Jeon Signed-off-by: Amit

[PATCH v3 5/6] fat: permit to return phy block number by fibmap in fallocated region

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon Make the fibmap call the return the proper physical block number for any offset request in the fallocated range. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- fs/fat/cache.c | 13 ++--- fs/fat/fat.h |3 +++ fs/fat/inode.c |3 +++ 3 files

[PATCH v3 6/6] fat: update the limitation for fat fallocate

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon update the limitation for fat fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- Documentation/filesystems/vfat.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/filesystems/vfat.txt b/Documentation/filesystems/vfat.txt

RE: [PATCH v5 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-08-24 Thread Namjae Jeon
> Hi Namjae, Hi Brian. Thanks for your mail :) > > Sorry for finding things so late, but it looks like this suffers from > the same couple bugs we've recently discovered with the collapse range > patches. See the following for a couple fixes that have been proposed > recently: > > http://oss.sgi

[PATCH v5 1/10] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-08-07 Thread Namjae Jeon
. and this command also has same limitation as FALLOC_FL_COLLAPSE_RANGE, that is block boundary and use ftruncate(2) for crosses EOF. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/open.c | 8 +++- include/uapi/linux/falloc.h | 15 +++ 2 files

[PATCH v5 0/10] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-08-07 Thread Namjae Jeon
mode 0. 5) It increses the size of file by len bytes. Namjae Jeon (10): fs: Add support FALLOC_FL_INSERT_RANGE for fallocate xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate xfsprogs: xfs_io: add finsert command for insert range via

[PATCH v5 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-08-07 Thread Namjae Jeon
ock of the extent, split the extent such that the block number is the starting block of the extent. 4) Shift all the extents which are lying bewteen [offset, last allocated extent] towards right by len bytes. This step will make a hole of len bytes at offset. Signed-off-by: Namjae Jeon Sig

[PATCH v5 8/10] xfstests: generic/032: Delayed allocation multi insert

2014-08-07 Thread Namjae Jeon
This testcase(032) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/032 | 65

[PATCH v5 6/10] xfstests: generic/030: Delayed allocation insert range

2014-08-07 Thread Namjae Jeon
This testcase(030) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/030 | 65 ++ tests/generic/030.out

[PATCH v5 7/10] xfstests: generic/031: Multi insert range tests

2014-08-07 Thread Namjae Jeon
This testcase(031) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/031 | 65 + tests/generic/031.out

[PATCH v5 4/10] xfsprogs: xfs_io: add finsert command for insert range via fallocate

2014-08-07 Thread Namjae Jeon
Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- io/prealloc.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/io/prealloc.c b/io/prealloc.c index aba6b44

[PATCH v5 10/10] xfstests: fsx: Add fallocate insert range operation

2014-08-07 Thread Namjae Jeon
This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- ltp/fsx.c | 96 +-- 1 file changed, 94 insertions(+), 2 deletions(-) diff --git a/ltp/fsx.c b/ltp/fsx.c

[PATCH v5 5/10] xfstests: generic/029: Standard insert range tests

2014-08-07 Thread Namjae Jeon
This testcase(029) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch | 5 common/rc | 2 +- tests/generic/029 | 65

[PATCH v5 9/10] xfstests: fsstress: Add fallocate insert range

2014-08-07 Thread Namjae Jeon
This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- ltp/fsstress.c | 19 --- src/global.h | 4 2 files changed, 20 insertions(+), 3

[PATCH v5 3/10] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-08-07 Thread Namjae Jeon
ock of the extent, split the extent such that the block number is the starting block of the extent. 4) Shift all the extents which are lying bewteen [offset, last allocated extent] towards right by len bytes. This step will make a hole of len bytes at offset. Signed-off-by: Namjae Jeon Sig

[PATCH v6 0/10] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-11-23 Thread Namjae Jeon
mode 0. 5) It increses the size of file by len bytes. Namjae Jeon (10): fs: Add support FALLOC_FL_INSERT_RANGE for fallocate xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate xfsprogs: xfs_io: add finsert command for insert range via

[PATCH v6 3/10] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-11-23 Thread Namjae Jeon
ock of the extent, split the extent such that the block number is the starting block of the extent. 4) Shift all the extents which are lying bewteen [offset, last allocated extent] towards right by len bytes. This step will make a hole of len bytes at offset. Signed-off-by: Namjae Jeon Sig

[PATCH v6 1/10] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-11-23 Thread Namjae Jeon
. and this command also has same limitation as FALLOC_FL_COLLAPSE_RANGE, that is block boundary and use ftruncate(2) for crosses EOF. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/open.c | 8 +++- include/uapi/linux/falloc.h | 15 +++ 2 files

[PATCH v6 10/10] xfstests: fsx: Add fallocate insert range operation

2014-11-23 Thread Namjae Jeon
This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- ltp/fsx.c | 96 +-- 1 file changed, 94 insertions(+), 2 deletions(-) diff --git a/ltp/fsx.c b/ltp/fsx.c

[PATCH v6 6/10] xfstests: generic/039: Delayed allocation insert range

2014-11-23 Thread Namjae Jeon
This testcase(039) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/039 | 65 ++ tests/generic/039.out

[PATCH v6 5/10] xfstests: generic/038: Standard insert range tests

2014-11-23 Thread Namjae Jeon
This testcase(038) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch | 5 common/rc | 2 +- tests/generic/038 | 65

[PATCH v6 9/10] xfstests: fsstress: Add fallocate insert range

2014-11-23 Thread Namjae Jeon
This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- ltp/fsstress.c | 19 --- src/global.h | 4 2 files changed, 20 insertions(+), 3

[PATCH v6 4/10] xfsprogs: xfs_io: add finsert command for insert range via fallocate

2014-11-23 Thread Namjae Jeon
Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- io/prealloc.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/io/prealloc.c b/io/prealloc.c index aba6b44

[PATCH v6 8/10] xfstests: generic/041: Delayed allocation multi insert

2014-11-23 Thread Namjae Jeon
This testcase(041) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/041 | 65

[PATCH v6 7/10] xfstests: generic/040: Multi insert range tests

2014-11-23 Thread Namjae Jeon
This testcase(040) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/040 | 65 + tests/generic/040.out

[PATCH v6 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-11-23 Thread Namjae Jeon
ock of the extent, split the extent such that the block number is the starting block of the extent. 4) Shift all the extents which are lying bewteen [offset, last allocated extent] towards right by len bytes. This step will make a hole of len bytes at offset. Signed-off-by: Namjae Jeon Sig

RE: [PATCH v10 12/12] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-05-06 Thread Namjae Jeon
> > Hello Namjae Jeon, Hi Michael, > > I see that FALLOC_FL_INSERT_RANGE has hit mainline. Could I ask you refresh > this patch, please? (Against latest man-pages Git, please, since the current > patch does not apply cleanly). Sure. I will fix your review points on latest

[PATCH v2] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-05-06 Thread Namjae Jeon
Update FALLOC_FL_INSERT_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 89 1 file changed, 84 insertions(+), 5 deletions(-) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index

RE: [PATCH v2] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-05-07 Thread Namjae Jeon
> Hello Namjae Jeon, Hi Michael, > > Thanks for the revised patch. I have a question below: > > On 05/07/2015 07:15 AM, Namjae Jeon wrote: > > Update FALLOC_FL_INSERT_RANGE flag in fallocate. > > > > Signed-off-by: Namjae Jeon > > Signed-off-by: Ashish

[PATCH v3] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-05-07 Thread Namjae Jeon
Update FALLOC_FL_INSERT_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 89 1 file changed, 84 insertions(+), 5 deletions(-) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index

RE: [PATCH v3] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-05-08 Thread Namjae Jeon
hanks very much!! > > Cheers, > > Michael > > On 05/08/2015 07:28 AM, Namjae Jeon wrote: > > Signed-off-by: Namjae Jeon > > Signed-off-by: Ashish Sangwan > > --- > > man2/fallocate.2 | 89 > > --

RE: [PATCH v10 10/12] xfstests: fsstress: Add fallocate insert range operation

2015-02-24 Thread Namjae Jeon
> On Sun, Feb 22, 2015 at 12:45:52AM +0900, Namjae Jeon wrote: > > From: Namjae Jeon > > > > This commit adds insert operation support for fsstress, which is > > meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. > > This causes xfs/068 to fail bec

RE: [PATCH v9 4/11] xfsprogs: xfs_io: add finsert command for insert range

2015-02-05 Thread Namjae Jeon
> Hi Namjae, Hi Dave, > > On Fri, Feb 06, 2015 at 10:40:33AM +1100, Dave Chinner wrote: > > On Thu, Jan 22, 2015 at 12:11:59AM +0900, Namjae Jeon wrote: > > > From: Namjae Jeon > > > > > > Add finsert command for fallocate FALLOC_FL_INSERT_RANGE fl

[PATCH 11/11] xfstests: Test multiple fallocate insert/collapse range calls

2014-12-18 Thread Namjae Jeon
This testcase(043) tries to test finsert range a single alternate block mulitiple times and test merge code of collase range. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Cc: Brian Foster --- tests/generic/043 | 107 ++ tests

[PATCH v7 2/11] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-12-18 Thread Namjae Jeon
ock of the extent, split the extent such that the block number is the starting block of the extent. 4) Shift all the extents which are lying bewteen [offset, last allocated extent] towards right by len bytes. This step will make a hole of len bytes at offset. Signed-off-by: Namjae Jeon Sig

RE: [RFC PATCH] fs: file freeze support

2015-01-20 Thread Namjae Jeon
> On Mon 19-01-15 22:07:01, Namjae Jeon wrote: > > > > When this state is set, any process which tries to modify the file's > > > > address > > > > space, either by pagefault mmap writes or using write(2), will block > > > > until >

[PATCH v9 0/11] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon In continuation of the work of making the process of non linear editing of media files faster, we introduce here the new flag FALLOC_FL_INSERT_RANGE for fallocate. This flag will work opposite to the FALLOC_FL_COLLAPSE_RANGE flag. As such, specifying FALLOC_FL_INSERT_RANGE

[PATCH v9 1/11] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will create space for writing new data within a file after shifting extents to

[PATCH v9 11/11] xfstests: fsx: Add fallocate insert range operation

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- Changelog v9: - fix crash down due to the memset() on good buf going off the end of the buffer. v8: - create

[PATCH v9 2/11] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number

[PATCH v9 7/11] xfstests: generic/041: Multi insert range tests

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(041) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/041 | 65

[PATCH v9 4/11] xfsprogs: xfs_io: add finsert command for insert range

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- io/prealloc.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a

[PATCH v9 5/11] xfstests: generic/039: Standard insert range tests

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(039) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch |5 common/rc |2 +- tests/generic/039

[PATCH v9 3/11] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for Ext4. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number

[PATCH v9 10/11] xfstests: fsstress: Add fallocate insert range operation

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- ltp/fsstress.c | 19 --- src/global.h

[PATCH v9 6/11] xfstests: generic/040: Delayed allocation insert range

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(040) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/040 | 65

[PATCH v9 9/11] xfstests: generic/043: Test multiple fallocate insert/collapse range calls

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(043) tries to test finsert range a single alternate block multiple times and test merge code of collase range. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- Changelog v9: - check that mkfs and mount succeed. - check

[PATCH v9 8/11] xfstests: generic/042: Delayed allocation multi insert

2015-01-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(042) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/042 | 65

RE: [PATCH v9 0/11] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2015-01-22 Thread Namjae Jeon
inux-...@vger.kernel.org. See also > https://www.kernel.org/doc/man-pages/linux-api-ml.html ) Hi Michael, I will keep that in mind. Thank you! > > Thanks, > > Michael > > > On Wed, Jan 21, 2015 at 4:11 PM, Namjae Jeon wrote: > > From: Namjae Jeon > >

[PATCH v10 0/12] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon In continuation of the work of making the process of non linear editing of media files faster, we introduce here the new flag FALLOC_FL_INSERT_RANGE for fallocate. This flag will work opposite to the FALLOC_FL_COLLAPSE_RANGE flag. As such, specifying FALLOC_FL_INSERT_RANGE

[PATCH v10 1/12] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will create space for writing new data within a file after shifting extents to

[PATCH v10 6/12] xfstests: generic/060: Delayed allocation insert range

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(060) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/060 | 65

[PATCH v10 12/12] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon Update FALLOC_FL_INSERT_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 88 ++ 1 file changed, 82 insertions(+), 6 deletions(-) diff --git a/man2/fallocate.2 b

[PATCH v10 11/12] xfstests: fsx: Add fallocate insert range operation

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- ltp/fsx.c | 124 - 1 file changed, 114 insertions(+), 10

[PATCH v10 9/12] xfstests: generic/064: Test multiple fallocate insert/collapse range calls

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(064) tries to test finsert range a single alternate block multiple times and test merge code of collase range. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- tests/generic/064 | 95

[PATCH v10 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number

[PATCH v10 7/12] xfstests: generic/061: Multi insert range tests

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(061) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/061 | 65

[PATCH v10 4/12] xfsprog: xfsio: update xfs_io manpage for FALLOC_FL_INSERT_RANGE

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon Update xfs_io manpage for FALLOC_FL_INSERT_RANGE. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Dave Chinner --- man/man8/xfs_io.8 |5 + 1 file changed, 5 insertions(+) diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8 index cf27b99

[PATCH v10 8/12] xfstests: generic/063: Delayed allocation multi insert

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(063) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/063 | 65

[PATCH v10 10/12] xfstests: fsstress: Add fallocate insert range operation

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- ltp/fsstress.c | 19 --- src/global.h

[PATCH v10 5/12] xfstests: generic/058: Standard insert range tests

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This testcase(058) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch |5 common/rc |2 +- tests/generic/058

[PATCH v10 3/12] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for Ext4. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number

[PATCH] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-02-16 Thread Namjae Jeon
Update FALLOC_FL_INSERT_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 88 1 file changed, 82 insertions(+), 6 deletions(-) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index

[PATCH RESEND 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number

[PATCH RESEND 1/12] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will create space for writing new data within a file after shifting extents to

[PATCH RESEND 3/12] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for Ext4. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number

[PATCH RESEND 4/12] xfsprog: xfsio: update xfs_io manpage for FALLOC_FL_INSERT_RANGE

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon Update xfs_io manpage for FALLOC_FL_INSERT_RANGE. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man/man8/xfs_io.8 |5 + 1 file changed, 5 insertions(+) diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8 index cf27b99..416206f 100644 --- a/man/man8

[PATCH RESEND 0/12] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon In continuation of the work of making the process of non linear editing of media files faster, we introduce here the new flag FALLOC_FL_INSERT_RANGE for fallocate. This flag will work opposite to the FALLOC_FL_COLLAPSE_RANGE flag. As such, specifying FALLOC_FL_INSERT_RANGE

[PATCH RESEND 10/12] xfstests: fsstress: Add fallocate insert range operation

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- ltp/fsstress.c | 19 --- src/global.h

[PATCH RESEND 9/12] xfstests: generic/046: Test multiple fallocate insert/collapse range calls

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This testcase(043) tries to test finsert range a single alternate block multiple times and test merge code of collase range. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- tests/generic/046 | 95

[PATCH RESEND 11/12] xfstests: fsx: Add fallocate insert range operation

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- ltp/fsx.c | 124 - 1 file changed, 114 insertions(+), 10

[PATCH RESEND 12/12] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon Update FALLOC_FL_INSERT_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 88 ++ 1 file changed, 82 insertions(+), 6 deletions(-) diff --git a/man2/fallocate.2 b

[PATCH RESEND 8/12] xfstests: generic/045: Delayed allocation multi insert

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This testcase(045) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/045 | 65

[PATCH RESEND 6/12] xfstests: generic/043: Delayed allocation insert range

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This testcase(043) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/043 | 65

[PATCH RESEND 7/12] xfstests: generic/044: Multi insert range tests

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This testcase(044) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/044 | 65

[PATCH RESEND 5/12] xfstests: generic/042: Standard insert range tests

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon This testcase(042) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch |5 common/rc |2 +- tests/generic/042

RE: [PATCH RESEND 11/12] xfstests: fsx: Add fallocate insert range operation

2015-02-16 Thread Namjae Jeon
> > On Tue, Feb 17, 2015 at 12:47:58AM +0900, Namjae Jeon wrote: > > From: Namjae Jeon > > > > This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. > > > > Signed-off-by: Namjae Jeon > > Signed-off-by: Ashish Sangwan > > Reviewed

RE: [PATCH RESEND 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
Hi Dave, I did totally check your review points. I will share the patch soon. Thanks for your review! > On Tue, Feb 17, 2015 at 12:47:49AM +0900, Namjae Jeon wrote: > > From: Namjae Jeon > > > > This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. >

RE: [PATCH RESEND 1/12] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
> On Tue, Feb 17, 2015 at 12:47:48AM +0900, Namjae Jeon wrote: > > From: Namjae Jeon > > > > FALLOC_FL_INSERT_RANGE command is the opposite command of > > FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want > > to > &

<    4   5   6   7   8   9   10   >