+2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
+
+ * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
+ via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
+ 'forever', so things disappear out of the cache rather than just
+ be ignored.
+
2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
* utils/mountd/cache.c(nfsd_fh): don't export the export_ent
if (f == NULL) return -1;
qword_print(f, exp->ex_client);
qword_print(f, exp->ex_path);
- qword_printint(f, 0x7fffffff);
if (export) {
+ qword_printint(f, 0x7fffffff);
qword_printint(f, exp->ex_flags);
qword_printint(f, exp->ex_anon_uid);
qword_printint(f, exp->ex_anon_gid);
qword_printint(f, exp->ex_dev);
- }
+ } else
+ qword_printint(f, 1);
+
qword_eol(f);
fclose(f);
qword_printint(f,1);
fsid = exp->ex_dev;
qword_printhex(f, (char*)&fsid, 4);
- qword_printint(f, 0x7fffffff);
- if (export)
+ if (export) {
+ qword_printint(f, 0x7fffffff);
qword_print(f, exp->ex_path);
+ } else
+ qword_printint(f, 1);
+
qword_eol(f);
}
qword_print(f,exp->ex_client);
inode = stb.st_ino; memcpy(fsidstr+4, &inode, 4);
qword_printhex(f, fsidstr, 8);
- qword_printint(f, 0x7fffffff);
- if (export)
+ if (export) {
+ qword_printint(f, 0x7fffffff);
qword_print(f, exp->ex_path);
+ } else
+ qword_printint(f, 1);
qword_eol(f);
fclose(f);
return 0;