Mercurial > xfs_email_hsm
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cd351af3a8d2 |
---|---|
1 #!/bin/bash | |
2 | |
3 DEV=/dev/hda6 | |
4 MNT=/mnt/xfs_scratch | |
5 S1=/home/jeffpc/xfs-cmds/xfstests/dmapi/src/suite1/cmd | |
6 SHSM=/home/jeffpc/xfs-cmds/xfstests/dmapi/src/sample_hsm | |
7 MYHSM=/home/jeffpc/myprogs/xfs_smtp_hsm | |
8 | |
9 set -x | |
10 umount $MNT | |
11 mkfs.xfs -f $DEV | |
12 mount $DEV $MNT -o dmapi,mtpt=$MNT | |
13 | |
14 cp /tmp/t $MNT/large | |
15 | |
16 fshandle=`$S1/path_to_fshandle $MNT` | |
17 $S1/get_config_events $fshandle | |
18 | |
19 while true ; do | |
20 $SHSM/migfind -s 5k $MNT > /tmp/dmapi-list | |
21 [ -s /tmp/dmapi-list ] && break | |
22 sleep 45 | |
23 done | |
24 | |
25 cat /tmp/dmapi-list | |
26 | |
27 read n | |
28 | |
29 $MYHSM/migout < /tmp/dmapi-list | |
30 | |
31 |