summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorhjl <hjl>2000-06-01 00:57:09 +0000
committerhjl <hjl>2000-06-01 00:57:09 +0000
commit70a0e44cc77a7d8fc78c5514889bcd5d4fde3599 (patch)
treeb00d1063e2c1228d84d74c0aac0c82b7157b4963 /support/include
parent62393e334ac95e4cd61d959a4a2e675cf32f58a7 (diff)
downloadnfs-utils-70a0e44cc77a7d8fc78c5514889bcd5d4fde3599.tar.gz
nfs-utils-70a0e44cc77a7d8fc78c5514889bcd5d4fde3599.tar.xz
nfs-utils-70a0e44cc77a7d8fc78c5514889bcd5d4fde3599.zip
2000-05-31 H.J. Lu <hjl@lucon.org>
* configure.in (VERSION): Set to "0.1.7.5". * configure: Regenerated. * nfs-utils.spec: Updated. * support/include/nfslib.h (exportent): Add a new field, r_count, to count the number of mounts from a client. (getrmtabent): Take a new argument for position in file. (putrmtabent): Likewise. (fgetrmtabent): Likewise. (fputrmtabent): Likewise. * support/nfs/rmtab.c (getrmtabent): Handle the new argument for position in file. (fgetrmtabent): Likewise. (putrmtabent): Likewise. (fputrmtabent): Likewise. * support/nfs/rmtab.c (fgetrmtabent): Get value for the new field, r_count. * support/export/rmtab.c (rmtab_read): Pass NULL as the new argument to getrmtabent (), fgetrmtabent (), putrmtabent () and fputrmtabent (). * utils/mountd/rmtab.c (mountlist_add): Likewise. (mountlist_del): Likewise. (mountlist_del_all): Likewise. (mountlist_list): Likewise. * utils/mountd/rmtab.c (mountlist_add): Increment "r_count" for the existing entry and initialize "r_count" to 1. (mountlist_del): Decrement "r_count".
Diffstat (limited to 'support/include')
-rw-r--r--support/include/nfslib.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/support/include/nfslib.h b/support/include/nfslib.h
index b5c7237..8736d49 100644
--- a/support/include/nfslib.h
+++ b/support/include/nfslib.h
@@ -77,6 +77,7 @@ struct exportent {
struct rmtabent {
char r_client[NFSCLNT_IDMAX+1];
char r_path[NFS_MAXPATHLEN+1];
+ int r_count;
};
/*
@@ -92,13 +93,13 @@ void dupexportent(struct exportent *dst,
int updateexportent(struct exportent *eep, char *options);
int setrmtabent(char *type);
-struct rmtabent * getrmtabent(int log);
-void putrmtabent(struct rmtabent *xep);
+struct rmtabent * getrmtabent(int log, long *pos);
+void putrmtabent(struct rmtabent *xep, long *pos);
void endrmtabent(void);
void rewindrmtabent(void);
FILE * fsetrmtabent(char *fname, char *type);
-struct rmtabent * fgetrmtabent(FILE *fp, int log);
-void fputrmtabent(FILE *fp, struct rmtabent *xep);
+struct rmtabent * fgetrmtabent(FILE *fp, int log, long *pos);
+void fputrmtabent(FILE *fp, struct rmtabent *xep, long *pos);
void fendrmtabent(FILE *fp);
void frewindrmtabent(FILE *fp);