view test_migout @ 0:cd351af3a8d2 migout

import source
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 27 Mar 2008 20:03:52 -0400
parents
children
line wrap: on
line source

#!/bin/bash

DEV=/dev/hda6
MNT=/mnt/xfs_scratch
S1=/home/jeffpc/xfs-cmds/xfstests/dmapi/src/suite1/cmd
SHSM=/home/jeffpc/xfs-cmds/xfstests/dmapi/src/sample_hsm
MYHSM=/home/jeffpc/myprogs/xfs_smtp_hsm

set -x
umount $MNT
mkfs.xfs -f $DEV
mount $DEV $MNT -o dmapi,mtpt=$MNT

cp /tmp/t $MNT/large

fshandle=`$S1/path_to_fshandle $MNT`
$S1/get_config_events $fshandle

while true ; do
	$SHSM/migfind -s 5k $MNT > /tmp/dmapi-list
	[ -s /tmp/dmapi-list ] && break
	sleep 45
done

cat /tmp/dmapi-list

read n

$MYHSM/migout < /tmp/dmapi-list