blob: 43396dec1237de2e2e0cd6d28b5ccfd2901c9bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/bash
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/bcachefs-test-libs.sh
config-scratch-devs 4G
config-timeout $(stress_timeout)
# test nfs exports:
require-kernel-config NFSD
require-kernel-config NFSD_V4
require-kernel-config NFS_FS
require-kernel-config NFS_V4
test_nfs()
{
mkdir /export1 /export2
run_quiet "" bcachefs format -f \
--errors=panic \
/dev/sdb
mount -t bcachefs /dev/sdb /export2
echo "/export1 *(rw,insecure,no_root_squash,no_subtree_check)" >> /etc/exports
echo "/export2 *(rw,insecure,no_root_squash,no_subtree_check)" >> /etc/exports
exportfs -a
mount -t nfs localhost:/export2 /mnt
dbench -S -t 30 2 -D /mnt/
umount /mnt
exportfs -ua
umount /export2
}
main "$@"
|