]> git.pld-linux.org Git - packages/nfs-utils.git/blame - nfs-utils-mount-fake.patch
- fix without nfs4
[packages/nfs-utils.git] / nfs-utils-mount-fake.patch
CommitLineData
b2eab8af
JR
1--- nfs-utils-1.1.0-rc1/utils/mount/mount.c~ 2007-03-29 05:55:33.000000000 +0200
2+++ nfs-utils-1.1.0-rc1/utils/mount/mount.c 2007-04-05 18:58:38.000000000 +0200
3@@ -508,30 +508,30 @@
4 }
42b01337 5 }
b61d51e0 6
b2eab8af
JR
7- if (nfs_mount_vers == 4)
8- mnt_err = nfs4mount(spec, mount_point, &flags, &extra_opts, &mount_opts, 0);
b61d51e0 9- else {
b2eab8af
JR
10- int need_statd = 0;
11- mnt_err = nfsmount(spec, mount_point, &flags,
12- &extra_opts, &mount_opts,
13- 0, &need_statd);
14- if (!mnt_err && !fake && need_statd) {
15- if (!start_statd()) {
16- fprintf(stderr,
17- "%s: rpc.statd is not running but is "
18- "required for remote locking\n"
19- " Either use \"-o nolocks\" to keep "
20- "locks local, or start statd.\n",
21- progname);
22- exit(1);
b61d51e0 23+ if (!fake) {
b2eab8af
JR
24+ if (nfs_mount_vers == 4)
25+ mnt_err = nfs4mount(spec, mount_point, &flags, &extra_opts, &mount_opts, 0);
b61d51e0 26+ else {
b2eab8af
JR
27+ int need_statd = 0;
28+ mnt_err = nfsmount(spec, mount_point, &flags,
29+ &extra_opts, &mount_opts,
30+ 0, &need_statd);
31+ if (!mnt_err && need_statd) {
32+ if (!start_statd()) {
33+ fprintf(stderr,
34+ "%s: rpc.statd is not running but is "
35+ "required for remote locking\n"
36+ " Either use \"-o nolocks\" to keep "
37+ "locks local, or start statd.\n",
38+ progname);
39+ exit(1);
40+ }
41 }
b61d51e0
JR
42 }
43- }
b2eab8af 44
b61d51e0
JR
45- if (mnt_err)
46- exit(EX_FAIL);
b2eab8af
JR
47+ if (mnt_err)
48+ exit(EX_FAIL);
42b01337 49
b2eab8af
JR
50- if (!fake) {
51 mnt_err = do_mount_syscall(spec, mount_point,
52 nfs_mount_vers == 4 ? "nfs4" : "nfs",
53 flags & ~(MS_USER|MS_USERS) ,
This page took 0.071822 seconds and 4 git commands to generate.