Whamcloud - gitweb
- minor further changes to the test script:
[fs/lustre-release.git] / lustre / tests / fs.sh
1 #! /bin/bash
2 # Copyright (C) 2001  Cluster File Systems, Inc.
3 #
4 # This code is issued under the GNU General Public License.
5 # See the file COPYING in this distribution
6 #!/bin/sh
7
8 R=/r
9
10 insmod /lib/modules/2.4.17/kernel/drivers/block/loop.o
11 dd if=/dev/zero of=/tmp/fs bs=1024 count=10000
12 mke2fs -b 4096 -F /tmp/fs
13 losetup /dev/loop/0 /tmp/fs
14
15 insmod $R/usr/src/obd/class/obdclass.o 
16 insmod $R/usr/src/obd/ext2obd/obdext2.o
17 mknod /dev/obd c 10 241
18
19 $R/usr/src/obd/utils/obdctl <<EOF
20 device 0
21 attach obdext2 OBDEXT2DEV
22 setup /dev/loop/0
23 quit
24 EOF
25
26 insmod $R/usr/src/obd/obdfs/obdfs.o
27 mount -t obdfs -o device=0 none /mnt