common: implement _require_xfs_io_command "open"
authorAmir Goldstein <amir73il@gmail.com>
Thu, 8 Dec 2016 10:52:20 +0000 (12:52 +0200)
committerEryu Guan <eguan@redhat.com>
Fri, 9 Dec 2016 07:55:19 +0000 (15:55 +0800)
commit53d31765f607735a055dad7423924584b347aee8
tree88ac5c1459ebd4b35edea6c69e87c0e4d3f91a56
parent180843c1f468025749af2d7c171e3f57075b8459
common: implement _require_xfs_io_command "open"

-c "open $f" is broken in xfs_io <= 4.8. Using it results
in an endless loop and xfs_io exists with error EMFILE.

A fix for that bug makes "open" a 'one shot' command.
Along with this fix, a new -C flag was introduced to explicitly
request to execute a one shot command.

Check for -C flag support as an indication that -c "open $f"
is not broken.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc