Re: [PATCH 1/3] ext4: Add EXT4_IOC_TRUNCATE_BLOCK_RANGE ioctl

2013-06-24 Thread Namjae Jeon
2013/6/24, Andreas Dilger : > On 2013-06-23, at 0:07, Namjae Jeon wrote: > >> From: Namjae Jeon >> The EXT4_IOC_TRUNCATE_BLOCK_RANGE removes the data blocks lying >> between [start, "start + length") and updates the logical block numbers >> of data blocks starting from "start + length" block to l

Re: [PATCH 1/3] ext4: Add EXT4_IOC_TRUNCATE_BLOCK_RANGE ioctl

2013-06-23 Thread Namjae Jeon
2013/6/23, Dmitry Monakhov : > On Sun, 23 Jun 2013 15:07:36 +0900, Namjae Jeon > wrote: >> From: Namjae Jeon Hi Dmitry. > What is the difference between this ioctl and generic punch_hole? It is different. Dave chinner already answered it. >> -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH 1/3] ext4: Add EXT4_IOC_TRUNCATE_BLOCK_RANGE ioctl

2013-06-23 Thread Andreas Dilger
On 2013-06-23, at 0:07, Namjae Jeon wrote: > From: Namjae Jeon > The EXT4_IOC_TRUNCATE_BLOCK_RANGE removes the data blocks lying > between [start, "start + length") and updates the logical block numbers > of data blocks starting from "start + length" block to last block of file. > This will main

Re: [PATCH 1/3] ext4: Add EXT4_IOC_TRUNCATE_BLOCK_RANGE ioctl

2013-06-23 Thread Dmitry Monakhov
On Sun, 23 Jun 2013 15:07:36 +0900, Namjae Jeon wrote: > From: Namjae Jeon What is the difference between this ioctl and generic punch_hole? > > The EXT4_IOC_TRUNCATE_BLOCK_RANGE removes the data blocks lying > between [start, "start + length") and updates the logical block numbers > of data blo

[PATCH 1/3] ext4: Add EXT4_IOC_TRUNCATE_BLOCK_RANGE ioctl

2013-06-22 Thread Namjae Jeon
From: Namjae Jeon The EXT4_IOC_TRUNCATE_BLOCK_RANGE removes the data blocks lying between [start, "start + length") and updates the logical block numbers of data blocks starting from "start + length" block to last block of file. This will maintain contiguous nature of logical block numbers after