mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: test inode allocations in post-growfs disk space
Make sure inodes can be allocated in new space added by xfs_growfs. Regression test for xfs: allow inode allocations in post-growfs disk space Signed-off-by: Eryu Guan <eguan@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
@@ -2312,6 +2312,39 @@ _require_btrfs_fs_feature()
|
||||
_notrun "Feature $feat not supported by the available btrfs version"
|
||||
}
|
||||
|
||||
_get_total_inode()
|
||||
{
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: _get_total_inode <mnt>"
|
||||
exit 1
|
||||
fi
|
||||
local nr_inode;
|
||||
nr_inode=`$DF_PROG -i $1 | tail -1 | awk '{print $3}'`
|
||||
echo $nr_inode
|
||||
}
|
||||
|
||||
_get_used_inode()
|
||||
{
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: _get_used_inode <mnt>"
|
||||
exit 1
|
||||
fi
|
||||
local nr_inode;
|
||||
nr_inode=`$DF_PROG -i $1 | tail -1 | awk '{print $4}'`
|
||||
echo $nr_inode
|
||||
}
|
||||
|
||||
_get_free_inode()
|
||||
{
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: _get_free_inode <mnt>"
|
||||
exit 1
|
||||
fi
|
||||
local nr_inode;
|
||||
nr_inode=`$DF_PROG -i $1 | tail -1 | awk '{print $5}'`
|
||||
echo $nr_inode
|
||||
}
|
||||
|
||||
init_rc()
|
||||
{
|
||||
if [ "$iam" == new ]
|
||||
|
||||
Reference in New Issue
Block a user