diff options
author | Neil Brown <neilb@suse.de> | 2007-02-27 16:35:01 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-02-27 16:35:01 +1100 |
commit | 57d81b9f4c7f877d64aa7e8c5bddb852e1aa32ce (patch) | |
tree | a63865f2b9f009ed0e2b2fe3719a1fab56691be1 /support/nfs | |
parent | fa2058d9dc483dbed373ddc04a898ddd7f135f6f (diff) | |
parent | 0b7f54e8954374ebb991ac851accde2c246ae9f8 (diff) | |
download | nfs-utils-57d81b9f4c7f877d64aa7e8c5bddb852e1aa32ce.tar.gz nfs-utils-57d81b9f4c7f877d64aa7e8c5bddb852e1aa32ce.tar.xz nfs-utils-57d81b9f4c7f877d64aa7e8c5bddb852e1aa32ce.zip |
Merge branch 'branch-1-0'
Diffstat (limited to 'support/nfs')
-rw-r--r-- | support/nfs/exports.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 60cfe48..9638015 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -236,9 +236,11 @@ putexportent(struct exportent *ep) case FSLOC_REPLICA: fprintf(fp, "replicas=%s,", ep->e_fslocdata); break; +#ifdef DEBUG case FSLOC_STUB: fprintf(fp, "fsloc=stub,"); break; +#endif default: xlog(L_ERROR, "unknown fsloc method for %s:%s", ep->e_hostname, ep->e_path); @@ -504,6 +506,7 @@ bad_option: ep->e_mountpoint = strdup(mp+1); else ep->e_mountpoint = strdup(""); +#ifdef DEBUG } else if (strncmp(opt, "fsloc=", 6) == 0) { if (strcmp(opt+6, "stub") == 0) ep->e_fslocmethod = FSLOC_STUB; @@ -512,6 +515,7 @@ bad_option: flname, flline, opt); goto bad_option; } +#endif } else if (strncmp(opt, "refer=", 6) == 0) { ep->e_fslocmethod = FSLOC_REFER; ep->e_fslocdata = strdup(opt+6); |