]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: fix xfs_isset pointer calculation
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Aug 2016 23:20:46 +0000 (09:20 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Aug 2016 23:20:46 +0000 (09:20 +1000)
commitde2f203d2bcdd29570f74ea164241e0791389494
treee9ae967f8cc7acafa1f60100e778b0e228cfc4c5
parent9694212f2325b75fb4a69246809447e110cb51e4
libxfs: fix xfs_isset pointer calculation

In the macro xfs_isset, the variable 'a' is a pointer to an array
type.  However, the bit offset calculation uses sizeof(a), which
returns the size of the pointer, not the size of an array element.
Fix this, which also fixes the problem where xfs_check spits out
bogus "rtblock X expected type unknown, got rtfree" messages.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/libxfs.h