]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: error negation rework
authorDave Chinner <dchinner@redhat.com>
Thu, 7 May 2015 01:57:58 +0000 (11:57 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 7 May 2015 01:57:58 +0000 (11:57 +1000)
commit0aeb911224986aab8febaa129228e9d81c0969e1
tree387fe21b99658e6ad3ee92cd6af4d6ba05306cda
parent93da279977e8822d55f87a97e89109bc40dcf6cd
libxfs: error negation rework

The libxfs core in the kernel now returns negative error numbers one
failure rather than positive numbers. This commit switches the
libxfs core to use negative error numbers and converts all
the libxfs function callers to negate the returned error so that
none of the other codeneeds tobe changed at this time.

This allows us to drive negative errors through the xfsprogs code
base at our leisure rather than having to do it all right now.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
33 files changed:
db/io.c
libxfs/rdwr.c
libxfs/trans.c
libxfs/util.c
libxfs/xfs_alloc.c
libxfs/xfs_alloc_btree.c
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_remote.c
libxfs/xfs_bmap.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_btree.c
libxfs/xfs_da_btree.c
libxfs/xfs_dir2.c
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_sf.c
libxfs/xfs_dquot_buf.c
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_fork.c
libxfs/xfs_sb.c
libxfs/xfs_symlink_remote.c
mkfs/proto.c
mkfs/xfs_mkfs.c
repair/attr_repair.c
repair/dinode.c
repair/dir2.c
repair/phase6.c
repair/phase7.c