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> Index: xf
Looks good. One comment below.... Reviewed-by: Dave Chinner <david@xxxxxxxxxxxxx> xxd - on debian that's packaged in the vim-common package, which not everyone will have installed (e.g. emacs users ;
Below is a version using od. The output in case of failure is not quite as easily readable as the original, but in the end portability wins: Extraced from https://bugzilla.kernel.org/show_bug.cgi?id=