| To: | Brian Foster <bfoster@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH RFC 1/3] xfs: debug mode forced buffered write failure |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Tue, 1 Mar 2016 04:55:16 -0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1456756170-51248-2-git-send-email-bfoster@xxxxxxxxxx> |
| References: | <1456756170-51248-1-git-send-email-bfoster@xxxxxxxxxx> <1456756170-51248-2-git-send-email-bfoster@xxxxxxxxxx> |
| User-agent: | Mutt/1.5.24 (2015-08-30) |
On Mon, Feb 29, 2016 at 09:29:28AM -0500, Brian Foster wrote: > Add a DEBUG mode-only sysfs knob to enable forced buffered write > failure. An additional side effect of this mode is brute force killing > of delayed allocation blocks in the range of the write. The latter is > the prime motiviation behind this patch, as userspace test > infrastructure requires a reliable mechanism to create and split > delalloc extents without causing extent conversion. > > Certain fallocate operations (i.e., zero range) were used for this in > the past, but the implementations have changed such that delalloc > extents are flushed and converted to real blocks, rendering the test > useless. Looks harmless, but I'd add a inline function to check for the failed writes field so that we can compile it away entirely for !DEBUG builds. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2/3] xfs: update icsb freeblocks counter after extent deletion, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 3/3] xfs: borrow indirect blocks from freed extent when available, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 2/3] xfs: update icsb freeblocks counter after extent deletion, Christoph Hellwig |
| Next by Thread: | Re: [PATCH RFC 1/3] xfs: debug mode forced buffered write failure, Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |