From: Wei Yongjun Date: Wed, 14 Mar 2007 06:46:59 +0000 (+0800) Subject: Rename add_mtab2() to del_mtab() X-Git-Tag: nfs-utils-1-1-0-rc1~73 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e8c2f652125bf15f7e3c8ee3c05cd2b1b7b6af14;p=nfs-utils.git Rename add_mtab2() to del_mtab() add_mtab2 is used to remove an entry from mtab, rename it to del_mtab. Signed-off-by: Wei Yongjun Signed-off-by: Neil Brown --- diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index c91bfd2..f6294d4 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -139,7 +139,7 @@ static void complain(int err, const char *dev) { } } -int add_mtab2(const char *spec, const char *node, const char *type, +int del_mtab(const char *spec, const char *node, const char *type, const char *opts, struct mntentchn *mc) { int umnt_err, umnt_err2, res; @@ -375,13 +375,13 @@ int nfsumount(int argc, char *argv[]) if(mc) { ret = _nfsumount(mc->m.mnt_fsname, mc->m.mnt_opts); if(ret) - ret = add_mtab2(mc->m.mnt_fsname, mc->m.mnt_dir, + ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir, mc->m.mnt_type, mc->m.mnt_opts, mc); } else { ret = _nfsumount(spec, NULL); if(ret) - ret = add_mtab2(spec, spec, spec, spec, NULL); + ret = del_mtab(spec, spec, spec, spec, NULL); } return(ret);