| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfstests: check block truncation after write failure |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 10 Nov 2010 09:34:26 +1100 |
| Cc: | xfs@xxxxxxxxxxx, Marius Tolzmann <tolzmann@xxxxxxxxxxxxx> |
| In-reply-to: | <20101109114923.GA29629@xxxxxxxxxxxxx> |
| References: | <20101109114923.GA29629@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-06-14) |
On Tue, Nov 09, 2010 at 06:49:23AM -0500, Christoph Hellwig wrote: > Extraced from https://bugzilla.kernel.org/show_bug.cgi?id=22452 > "data corruption after mmap()ing a file and writev() some data to another > file" > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Looks good. One comment below.... Reviewed-by: Dave Chinner <david@xxxxxxxxxxxxx> > +{ > + rm -rf $file > + rm -rf $file.NEW > +} > + > +trap "_cleanup ; exit \$status" 0 1 2 3 15 > + > +echo -n "cccccccccc" > $file > +$here/src/t_mmap_writev $file $file.NEW > +xxd $file.NEW xxd - on debian that's packaged in the vim-common package, which not everyone will have installed (e.g. emacs users ;). Better to use 'od -Ax' as od is part of coreutils and already used in other qa tests so we don't introduce a new external dependency... CHeers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/6] fs: add hole punching to fallocate, Jan Kara |
|---|---|
| Next by Date: | Re: [PATCH 1/6] fs: add hole punching to fallocate, Dave Chinner |
| Previous by Thread: | [PATCH] xfstests: check block truncation after write failure, Christoph Hellwig |
| Next by Thread: | Re: [PATCH] xfstests: check block truncation after write failure, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |