summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-09-24 11:28:59 -0400
committerNeil Brown <neilb@suse.de>2007-09-25 11:50:16 +1000
commit46572b00147b2ed5722ba4167073e7c2eb42ad74 (patch)
tree5e190be0674f034bbb62657395154c78404365d0
parent5951bf64c141511632e88693dc92ac77cff025d3 (diff)
downloadnfs-utils-46572b00147b2ed5722ba4167073e7c2eb42ad74.tar.gz
nfs-utils-46572b00147b2ed5722ba4167073e7c2eb42ad74.tar.xz
nfs-utils-46572b00147b2ed5722ba4167073e7c2eb42ad74.zip
text-based mount.nfs: Use "child" instead of "bg" for nfsmount_s
Match a recent change to nfs4mount_s -- eventually it will become clear why these were renamed. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
-rw-r--r--utils/mount/stropts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index a04596d..f73521f 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -243,12 +243,12 @@ static int append_clientaddr_opt(struct sockaddr_in *saddr, char **extra_opts)
* @extra_opts: pointer to C string containing fs-specific mount options
* (possibly also a return argument)
* @fake: flag indicating whether to carry out the whole operation
- * @bg: one if this is a backgrounded mount attempt
+ * @child: one if this is a backgrounded mount
*
* XXX: need to handle bg, fg, and retry options.
*/
int nfsmount_s(const char *spec, const char *node, int flags,
- char **extra_opts, int fake, int bg)
+ char **extra_opts, int fake, int child)
{
struct sockaddr_in saddr;
char *hostname;
@@ -263,7 +263,7 @@ int nfsmount_s(const char *spec, const char *node, int flags,
extract_interesting_options(*extra_opts);
- if (!bg && addr_opt) {
+ if (!child && addr_opt) {
nfs_error(_("%s: Illegal option: 'addr='"), progname);
return EX_FAIL;
}