glusterfs

Форк
0
/
showmount-many-clients.t 
43 строки · 1.3 Кб
1
#!/bin/bash
2
#
3
# The nfs.rpc-auth-allow volume option is used to generate the list of clients
4
# that are displayed as able to mount the export. The "group" in the export
5
# should be a list of all clients, identified by "name". In previous versions,
6
# the "name" was the copied string from nfs.rpc-auth-allow. This is not
7
# correct, as the volume option should be parsed and split into different
8
# groups.
9
#
10
# When the single string is passed, this testcase fails when the
11
# nfs.rpc-auth-allow volume option is longer than 256 characters. By splitting
12
# the groups into their own structures, this testcase passes.
13
#
14

15
#G_TESTDEF_TEST_STATUS_CENTOS6=NFS_TEST
16

17
. $(dirname $0)/../../include.rc
18
. $(dirname $0)/../../nfs.rc
19
. $(dirname $0)/../../volume.rc
20

21
cleanup
22

23
TEST glusterd
24
TEST pidof glusterd
25

26
TEST $CLI volume create $V0 $H0:$B0/brick1
27
EXPECT 'Created' volinfo_field $V0 'Status'
28
TEST $CLI volume set $V0 nfs.disable false
29

30
CLIENTS=$(echo 127.0.0.{1..128} | tr ' ' ,)
31
TEST $CLI volume set $V0 nfs.rpc-auth-allow ${CLIENTS}
32
TEST $CLI volume set $V0 nfs.rpc-auth-reject all
33

34
TEST $CLI volume start $V0;
35
EXPECT 'Started' volinfo_field $V0 'Status'
36

37
# glusterfs/nfs needs some time to start up in the background
38
EXPECT_WITHIN $NFS_EXPORT_TIMEOUT 1 is_nfs_export_available
39

40
# showmount should not timeout (no reply is sent on error)
41
TEST showmount -e $H0
42

43
cleanup
44

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.