]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - io/inject.c
xfs_io: make various commands one-shot only
authorDave Chinner <dchinner@redhat.com>
Thu, 12 Jan 2017 20:12:41 +0000 (14:12 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 12 Jan 2017 20:12:41 +0000 (14:12 -0600)
commit16bf04644f3a70822d7fb5a2578bc2c3e321e4de
treec8515b9f82ef90350f56305dcdd0ab21617ad6b0
parent92058d254ddfa37d5c7b4629ca738a502996203e
xfs_io: make various commands one-shot only

It makes no sense to iterate the file table for some xfs_io
commands. Some commands are already marked in this way, but lots of
them are not and this leads to bad behaviour. For example, the open
command will run until the process fd table is full and EMFILE is
returned rather than just opening the specified file once.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
12 files changed:
io/file.c
io/freeze.c
io/getrusage.c
io/imap.c
io/inject.c
io/link.c
io/mmap.c
io/open.c
io/reflink.c
io/resblks.c
io/shutdown.c
io/sync.c