Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1350718
| From | "Darrick J. Wong" <darrick.wong@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v6 0/3] fallocate for block devices to provide zero-out |
| Date | 2016-03-05 02:00 +0100 |
| Message-ID | <r98Jz-6FF-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi, This is a redesign of the patch series that fixes various interface problems with the existing "zero out this part of a block device" code. BLKZEROOUT2 is gone. The first patch is still a fix to the existing BLKZEROOUT ioctl to invalidate the page cache if the zeroing command to the underlying device succeeds. The second patch changes the internal block device functions to reject attempts to discard or zeroout that are not aligned to the logical block size. Previously, we only checked that the start/len parameters were 512-byte aligned, which caused kernel BUG_ONs for unaligned IOs to 4k-LBA devices. The third patch creates an fallocate handler for block devices, wires up the FALLOC_FL_PUNCH_HOLE flag to zeroing-discard, and connects FALLOC_FL_ZERO_RANGE to write-same so that we can have a consistent fallocate interface between files and block devices. Test cases[1] for the new block device fallocate will have been submitted to the xfstests list as generic/70[5-7], though the numbering will change to a lower number when the API and the tests are accepted upstream. Comments and questions are, as always, welcome. Patches are against 4.5-rc6. --D [1] https://github.com/djwong/xfstests/commit/fdc0980ef01076dfb246fd1db2511227e9f67a3f
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v6 0/3] fallocate for block devices to provide zero-out "Darrick J. Wong" <darrick.wong@oracle.com> - 2016-03-05 02:00 +0100
[PATCH 3/3] block: implement (some of) fallocate for block devices "Darrick J. Wong" <darrick.wong@oracle.com> - 2016-03-05 02:00 +0100
Re: [PATCH 3/3] block: implement (some of) fallocate for block devices Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-05 04:10 +0100
Re: [PATCH 3/3] block: implement (some of) fallocate for block devices Christoph Hellwig <hch@infradead.org> - 2016-03-05 22:00 +0100
Re: [PATCH 3/3] block: implement (some of) fallocate for block devices Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-05 04:20 +0100
Re: [PATCH 3/3] block: implement (some of) fallocate for block devices Christoph Hellwig <hch@infradead.org> - 2016-03-05 22:00 +0100
[PATCH 1/3] block: invalidate the page cache when issuing BLKZEROOUT. "Darrick J. Wong" <darrick.wong@oracle.com> - 2016-03-05 02:00 +0100
Re: [PATCH 1/3] block: invalidate the page cache when issuing BLKZEROOUT. Christoph Hellwig <hch@infradead.org> - 2016-03-15 08:40 +0100
[PATCH 2/3] block: require write_same and discard requests align to logical block size "Darrick J. Wong" <darrick.wong@oracle.com> - 2016-03-05 02:00 +0100
Re: [PATCH 2/3] block: require write_same and discard requests align to logical block size Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-05 04:10 +0100
Re: [PATCH 2/3] block: require write_same and discard requests align to logical block size Christoph Hellwig <hch@infradead.org> - 2016-03-15 08:40 +0100
Re: [PATCH v6 0/3] fallocate for block devices to provide zero-out Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-05 04:20 +0100
csiph-web