]> arthur.barton.de Git - bup.git/commit
Handle ntfs-3g EINVAL for attr save/restore
authorRob Browning <rlb@defaultvalue.org>
Wed, 7 Sep 2016 04:34:24 +0000 (23:34 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 7 Sep 2016 04:50:36 +0000 (23:50 -0500)
commit0527f5d46b7d3f3f874d45cd59db01aa48a84046
treec383c225b67fbdb6b0d2a399286894ff629ab135
parent1bbf030846670d022d84b475f86d8e859ddaf903
Handle ntfs-3g EINVAL for attr save/restore

It appears that ntfs-3g now returns EINVAL for unsupported ioctls
including FS_IOC_GET_FLAGS and FS_IOC_SET_FLAGS.

Treat EINVAL like the existing expected errors for these calls, but
since there's evidence to suggest that other devices/filesystems use
EINVAL to indicate more serious trouble and use ENOTTY to indicate
unsupported ioctls, include a request to report any occurrences of
EINVAL when ntfs-3g is not involved.

Thanks to Mark J Hewitt for reporting the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py