Print this page
*** NO COMMENTS ***
*** 73,83 ****
#endif
static void usage();
static int nfs_unmount(char *, int);
static void inform_server(char *, char *, bool_t);
static struct extmnttab *mnttab_find();
! extern int __clnt_bindresvport();
static int is_v4_mount(struct extmnttab *);
static char *myname;
static char typename[64];
--- 73,83 ----
#endif
static void usage();
static int nfs_unmount(char *, int);
static void inform_server(char *, char *, bool_t);
static struct extmnttab *mnttab_find();
! extern int __clnt_bindresvport(CLIENT *);
static int is_v4_mount(struct extmnttab *);
static char *myname;
static char typename[64];
*** 96,106 ****
#endif
(void) textdomain(TEXT_DOMAIN);
myname = strrchr(argv[0], '/');
myname = myname ? myname+1 : argv[0];
! (void) sprintf(typename, "nfs %s", myname);
argv[0] = typename;
/*
* Set options
*/
--- 96,106 ----
#endif
(void) textdomain(TEXT_DOMAIN);
myname = strrchr(argv[0], '/');
myname = myname ? myname+1 : argv[0];
! (void) snprintf(typename, sizeof (typename), "nfs %s", myname);
argv[0] = typename;
/*
* Set options
*/
*** 152,162 ****
static void
usage()
{
(void) fprintf(stderr,
! gettext("Usage: nfs umount [-o opts] {server:path | dir}\n"));
exit(RET_ERR);
}
static int
nfs_unmount(char *pathname, int umnt_flag)
--- 152,162 ----
static void
usage()
{
(void) fprintf(stderr,
! gettext("Usage: nfs umount [-f] {server:path | dir}\n"));
exit(RET_ERR);
}
static int
nfs_unmount(char *pathname, int umnt_flag)
*** 224,234 ****
fsfreemnttab(res);
res = fsdupmnttab(&mnt);
}
}
! fclose(fp);
return (res);
}
/*
* If quick is TRUE, it will try to inform server quickly
--- 224,234 ----
fsfreemnttab(res);
res = fsdupmnttab(&mnt);
}
}
! (void) fclose(fp);
return (res);
}
/*
* If quick is TRUE, it will try to inform server quickly
*** 359,369 ****
int
is_v4_mount(struct extmnttab *mntp)
{
kstat_ctl_t *kc = NULL; /* libkstat cookie */
kstat_t *ksp;
- ulong_t fsid;
struct mntinfo_kstat mik;
if (mntp == NULL)
return (FALSE);
--- 359,368 ----