@@ -138,16 +138,14 @@ test_nfsv3() {
138
138
client_test " NFSv3 root=dhcp DHCP path only" 52:54:00:12:34:00 \
139
139
" root=dhcp" 192.168.50.1 -wsize=4096 || return 1
140
140
141
- if [[ " $( systemctl --version) " != * " systemd 230" * ]] 2> /dev/null; then
142
- client_test " NFSv3 Legacy root=/dev/nfs nfsroot=IP:path" 52:54:00:12:34:01 \
143
- " root=/dev/nfs nfsroot=192.168.50.1:/nfs/client" 192.168.50.1 -wsize=4096 || return 1
141
+ client_test " NFSv3 Legacy root=/dev/nfs nfsroot=IP:path" 52:54:00:12:34:01 \
142
+ " root=/dev/nfs nfsroot=192.168.50.1:/nfs/client" 192.168.50.1 -wsize=4096 || return 1
144
143
145
- client_test " NFSv3 Legacy root=/dev/nfs DHCP path only" 52:54:00:12:34:00 \
146
- " root=/dev/nfs" 192.168.50.1 -wsize=4096 || return 1
144
+ client_test " NFSv3 Legacy root=/dev/nfs DHCP path only" 52:54:00:12:34:00 \
145
+ " root=/dev/nfs" 192.168.50.1 -wsize=4096 || return 1
147
146
148
- client_test " NFSv3 Legacy root=/dev/nfs DHCP IP:path" 52:54:00:12:34:01 \
149
- " root=/dev/nfs" 192.168.50.2 -wsize=4096 || return 1
150
- fi
147
+ client_test " NFSv3 Legacy root=/dev/nfs DHCP IP:path" 52:54:00:12:34:01 \
148
+ " root=/dev/nfs" 192.168.50.2 -wsize=4096 || return 1
151
149
152
150
client_test " NFSv3 root=dhcp DHCP IP:path" 52:54:00:12:34:01 \
153
151
" root=dhcp" 192.168.50.2 -wsize=4096 || return 1
@@ -169,19 +167,19 @@ test_nfsv3() {
169
167
170
168
# This test must fail: nfsroot= requires root=/dev/nfs
171
169
client_test " NFSv3 Invalid root=dhcp nfsroot=/nfs/client" 52:54:00:12:34:04 \
172
- " root=dhcp nfsroot=/nfs/client failme rd.debug " 192.168.50.1 -wsize=4096 && return 1
170
+ " root=dhcp nfsroot=/nfs/client failme" 192.168.50.1 -wsize=4096 && return 1
173
171
174
- client_test " NFSv3 root=dhcp DHCP path,options" \
175
- 52:54:00:12:34:05 " root=dhcp" 192.168.50.1 wsize=4096 || return 1
172
+ client_test " NFSv3 root=dhcp DHCP path,options" 52:54:00:12:34:05 \
173
+ " root=dhcp" 192.168.50.1 wsize=4096 || return 1
176
174
177
- client_test " NFSv3 Bridge Customized root=dhcp DHCP path,options" \
178
- 52:54:00:12:34:05 " root=dhcp bridge=foobr0:enp0s1" 192.168.50.1 wsize=4096 || return 1
175
+ client_test " NFSv3 Bridge Customized root=dhcp DHCP path,options" 52:54:00:12:34:05 \
176
+ " root=dhcp bridge=foobr0:enp0s1" 192.168.50.1 wsize=4096 || return 1
179
177
180
- client_test " NFSv3 root=dhcp DHCP IP:path,options" \
181
- 52:54:00:12:34:06 " root=dhcp" 192.168.50.2 wsize=4096 || return 1
178
+ client_test " NFSv3 root=dhcp DHCP IP:path,options" 52:54:00:12:34:06 \
179
+ " root=dhcp" 192.168.50.2 wsize=4096 || return 1
182
180
183
- client_test " NFSv3 root=dhcp DHCP proto:IP:path,options" \
184
- 52:54:00:12:34:07 " root=dhcp" 192.168.50.3 wsize=4096 || return 1
181
+ client_test " NFSv3 root=dhcp DHCP proto:IP:path,options" 52:54:00:12:34:07 \
182
+ " root=dhcp" 192.168.50.3 wsize=4096 || return 1
185
183
186
184
return 0
187
185
}
@@ -198,11 +196,10 @@ test_nfsv4() {
198
196
" root=dhcp" 192.168.50.3 wsize=4096 || return 1
199
197
200
198
client_test " NFSv4 root=nfs4:..." 52:54:00:12:34:84 \
201
- " root=nfs4:192.168.50.1:/client" 192.168.50.1 \
202
- -wsize=4096 || return 1
199
+ " root=nfs4:192.168.50.1:/client" 192.168.50.1 -wsize=4096 || return 1
203
200
204
- client_test " NFSv4 root=dhcp DHCP proto:IP:path,options" \
205
- 52:54:00:12:34:87 " root=dhcp" 192.168.50.3 wsize=4096 || return 1
201
+ client_test " NFSv4 root=dhcp DHCP proto:IP:path,options" 52:54:00:12:34:87 \
202
+ " root=dhcp" 192.168.50.3 wsize=4096 || return 1
206
203
207
204
return 0
208
205
}
0 commit comments