dirmask=N.
nowin95, shortname, user=N, group=N, mask=N, and dirmask=N.
user=N, group=N, mask=N, and dirmask=N.
2005-10-19 Erez Zadok <ezk@cs.sunysb.edu>
* doc/am-utils.texi (opts Option): document new pcfs options
- longname, nowin95, shortname, uid=N, gid=N, mask=N, and dirmask=N.
+ longname, nowin95, shortname, user=N, group=N, mask=N, and
+ dirmask=N.
* amd/ops_pcfs.c (mount_pcfs): process new pcfs options longname,
- nowin95, shortname, uid=N, gid=N, mask=N, and dirmask=N.
+ nowin95, shortname, user=N, group=N, mask=N, and dirmask=N.
* include/am_compat.h: provide compatibility mnttab string names,
if needed, for pcfs mount options longname, nowin95, shortname,
- uid=N, gid=N, mask=N, and dirmask=N.
+ user=N, group=N, mask=N, and dirmask=N.
* include/am_utils.h: extern for hasmntstr().
*** Notes specific to am-utils version 6.2a2
Support new mount options for type:=pcfs mounts: longname, nowin95,
-shortname, uid=N, gid=N, mask=N, and dirmask=N.
+shortname, user=N, group=N, mask=N, and dirmask=N.
- Bugs fixed:
* correctly print nfs_args->addr info (sin_family/port/addr)
#ifdef HAVE_PCFS_ARGS_T_UID
pcfs_args.uid = 0; /* default to root */
- if ((str = hasmntstr(&mnt, MNTTAB_OPT_UID)) != NULL) {
+ if ((str = hasmntstr(&mnt, MNTTAB_OPT_USER)) != NULL) {
struct passwd *pw;
if ((pw = getpwnam(str)) != NULL)
pcfs_args.uid = pw->pw_uid;
#ifdef HAVE_PCFS_ARGS_T_GID
pcfs_args.gid = 0; /* default to wheel/root group */
- if ((str = hasmntstr(&mnt, MNTTAB_OPT_GID)) != NULL) {
+ if ((str = hasmntstr(&mnt, MNTTAB_OPT_GROUP)) != NULL) {
struct group *gr;
if ((gr = getgrnam(str)) != NULL)
pcfs_args.gid = gr->gr_gid;
Enable generations in ISO-9660 file systems. Generations allow you to
see all versions of a given file.
-@item gid=@var{n}
-@cindex Mount flags; gid
+@item group=@var{n}
+@cindex Mount flags; group
For PCFS mounts, set the group of the files in the file system to
@var{n} (which can either be a group name or a GID number). The
default group is the group of the directory on which the file system
@cindex Mount flags; timeo
The NFS timeout, in tenth-seconds, before a request is retransmitted.
-@item uid=@var{n}
-@cindex Mount flags; uid
+@item user=@var{n}
+@cindex Mount flags; user
For PCFS mounts, set the owner of the files in the file system to
@var{n} (which can either be a user name or a UID number). The
default owner is the owner of the directory on which the file system
#endif /* not MNTTAB_OPT_WSIZE */
/* next four are useful for pcfs mounts */
-#ifndef MNTTAB_OPT_UID
-# define MNTTAB_OPT_UID "uid"
-#endif /* not MNTTAB_OPT_UID */
-#ifndef MNTTAB_OPT_GID
-# define MNTTAB_OPT_GID "gid"
-#endif /* not MNTTAB_OPT_GID */
+#ifndef MNTTAB_OPT_USER
+# define MNTTAB_OPT_USER "user"
+#endif /* not MNTTAB_OPT_USER */
+#ifndef MNTTAB_OPT_GROUP
+# define MNTTAB_OPT_GROUP "group"
+#endif /* not MNTTAB_OPT_GROUP */
#ifndef MNTTAB_OPT_MASK
# define MNTTAB_OPT_MASK "mask"
#endif /* not MNTTAB_OPT_MASK */