Skip to content
Snippets Groups Projects
Commit 68798cd4 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

populate the zfs test fs

parent 6b184e03
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
set -x
ROOT=/zfs
IMG=`pwd`/zfs.img
LOOP_DEV=/dev/loop7
DEV=/dev/vblk1
......@@ -9,6 +10,7 @@ CACHE=`pwd`/zfs.cache
POOL=osv
FS=usr
mkdir -p ${ROOT}
zpool destroy ${POOL}
rm -f ${IMG}
......@@ -17,9 +19,11 @@ truncate --size 10g ${IMG}
losetup ${LOOP_DEV} ${IMG}
ln ${LOOP_DEV} ${DEV}
zpool create -f ${POOL} -o cachefile=${CACHE} -o altroot=/ ${DEV}
zpool create -f ${POOL} -o cachefile=${CACHE} -o altroot=${ROOT} ${DEV}
zfs create ${POOL}/${FS}
cp -a tests/ ${ROOT}/${FS}
zpool export ${POOL}
sleep 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment