summaryrefslogtreecommitdiffstats
path: root/utils/mountd/rmtab.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant m_path fieldJ. Bruce Fields2008-08-281-3/+1
| | | | | | | | | | | | | | | | | Contrary to the comment above its definition, the field m_path always has the same value as e_path: the *only* modifications of m_path are all of the form: strncpy(exp->m_export.m_path, exp->m_export.e_path, sizeof (exp->m_export.m_path) - 1); exp->m_export.m_path[sizeof (exp->m_export.m_path) - 1] = '\0'; So m_path is always just a copy of e_path. In places where we need to store a path to a submount of a CROSSMNT-exported filesystem, as in cache.c, we just use a local variable. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Steve Dickson <steved@redhat.com>
* add -r flag to make mountd do reverse resolve of ipaddress on the flyJeff Layton2006-12-191-2/+13
| | | | | | | | | | | | | For those that want "traditional" showmount -a behavior from their mountd (hostname:/path instead of ipaddr:/path). This patch adds a '-r' flag that does a reverse-resolve for each IP address listed in the rmtab when a dump operation is called. Probably not a good idea for those concerned about performance, but since it's not the default option, I don't see it being an issue. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Neil Brown <neilb@suse.de>
* Autogen updateneilbrown2005-12-201-1/+3
|
* Support --ha-callout for high-availability calloutsneilbrown2004-09-061-1/+9
|
* Open channel files O_WRONLY, and improve mountlist support.neilbrown2003-08-041-5/+4
|
* typoneilbrown2003-03-261-1/+1
|
* 2002-11-27 Chip Salzenberg <chip@pobox.com>chip2002-11-281-23/+14
| | | | | * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer overflow bug. Reformat per rest of source file.
* 2002-10-15 Juan Gomez <juang@us.ibm.com>hjl2002-10-151-2/+38
| | | | | | * utils/mountd/rmtab.c (slink_safe_rename): New. Support symlink. (mountlist_add): Call slink_safe_rename instead of rename.
* 2000-05-31 H.J. Lu <hjl@lucon.org>hjl2000-06-011-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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".
* Initial revisionhjl1999-10-181-0/+173