Fix up filters to handle additional xfs_db output.
echo "*** dump attributes (1)"
-xfs_db -r -c "inode $inum_1" -c "print a.sfattr" $SCRATCH_DEV
+xfs_db -r -c "inode $inum_1" -c "print a.sfattr" $SCRATCH_DEV | \
+ sed -e '/secure = /d'
echo "*** dump attributes (2)"
s/^(hdr.firstused =) (\d+)/\1 FIRSTUSED/;
s/^(hdr.freemap\[0-2] = \[base,size]).*/\1 [FREEMAP..]/;
s/^(entries\[0-2] = \[hashval,nameidx,incomplete,root,local]).*/\1 [ENTRIES..]/;
+s/^(entries\[0-2] = \[hashval,nameidx,incomplete,root,secure,local]).*/\1 [ENTRIES..]/;
print;'
echo "*** done"
. ./common.rc
. ./common.filter
-# real QA test starts here
-
-cd `pwd`
-
-if [ -z "$WORKAREA" ]
-then
- _notrun "Can't run srcdiff without WORKAREA set"
-fi
-
-if [ ! -f $WORKAREA/xfstests/tools/srcdiff ]
-then
- _notrun "Can't find srcdiff tool under \"$WORKAREA\""
-fi
+[ -z "$KWORKAREA" ] && \
+ _notrun "Can't run srcdiff without KWORKAREA set"
+[ -d "$KWORKAREA/fs/xfs" ] || \
+ _notrun "Can't find XFS source under \"$KWORKAREA\""
-if [ ! -d $WORKAREA/linux/fs/xfs ]
-then
- _notrun "Can't find XFS source under \"$WORKAREA\""
-fi
+[ -z "$WORKAREA" ] && \
+ _notrun "Can't run srcdiff without WORKAREA set"
+[ -f "$WORKAREA/xfstests/tools/srcdiff" ] || \
+ _notrun "Can't find srcdiff tool under \"$WORKAREA\""
+[ -d "$WORKAREA/xfsprogs/include" ] || \
+ _notrun "Can't find XFS command headers under \"$WORKAREA\""
-if [ ! -d $WORKAREA/xfsprogs/include ]
-then
- _notrun "Can't find XFS command headers under \"$WORKAREA\""
-fi
-
-cd $WORKAREA/xfstests
+# real QA test starts here
+cd "$WORKAREA/xfstests"
echo Silence is golden.
perl tools/srcdiff -q >$seq.full
if ! diff $seq.full $seq.good >/dev/null; then
echo
echo 'FATAL ERROR: could not find a valid XFS base library.'
echo 'Install or upgrade the XFS library package.'
- echo 'Alternatively, run "make install-lib" from the xfsprogs source.'
+ echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
exit 1
])
libxfs="-lxfs"
echo
echo 'FATAL ERROR: could not find a current XFS handle library.'
echo 'Install or upgrade the XFS library package.'
- echo 'Alternatively, run "make install-lib" from the xfsprogs source.'
+ echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
exit 1
])
libhdl="-lhandle"
fi
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(char *, 4)
- if test $ac_cv_sizeof_long -eq 4; then
+ if test $ac_cv_sizeof_long -eq 4 -o $ac_cv_sizeof_long -eq 0; then
AC_DEFINE(HAVE_32BIT_LONG)
fi
if test $ac_cv_sizeof_long -eq 8; then
AC_DEFINE(HAVE_64BIT_LONG)
fi
- if test $ac_cv_sizeof_char_p -eq 4; then
+ if test $ac_cv_sizeof_char_p -eq 4 -o $ac_cv_sizeof_char_p -eq 0; then
AC_DEFINE(HAVE_32BIT_PTR)
fi
if test $ac_cv_sizeof_char_p -eq 8; then
echo
echo 'FATAL ERROR: could not find a valid XFS base library.'
echo 'Install or upgrade the XFS library package.'
- echo 'Alternatively, run "make install-lib" from the xfsprogs source.'
+ echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
exit 1
])
libxfs="-lxfs"
echo
echo 'FATAL ERROR: could not find a current XFS handle library.'
echo 'Install or upgrade the XFS library package.'
- echo 'Alternatively, run "make install-lib" from the xfsprogs source.'
+ echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
exit 1
])
libhdl="-lhandle"
chdir $ENV{'WORKAREA'};
my $kworkarea = $ENV{'KWORKAREA'};
my $xdiff = $ENV{'XDIFF'};
-my $quiet=0;
-my $usage=0;
+my $quiet = 0;
+my $usage = 0;
foreach (@ARGV) {
if (/^-q$/) {
xfs_imap.h xfs_ialloc_btree.h xfs_inode.h xfs_inode_item.h
xfs_inum.h xfs_log.h xfs_log_priv.h xfs_log_recover.h
xfs_mount.h xfs_quota.h xfs_rtalloc.h
- xfs_sb.h xfs_trans.h xfs_trans_space.h xfs_types.h
- xfs_fs.h xfs_acl.h xfs_cap.h xfs_mac.h
+ xfs_sb.h xfs_trans.h xfs_trans_space.h xfs_types.h xfs_fs.h
);
sub straightdiff {