+2005-05-16 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * amd/nfs_subr.c: use [1] for out-of-band pointer at the end of
+ struct am_fh, because it's the most portable method. Bug fix
+ suggestion from Dan Riley <dsr at mail.lns.cornell.edu>.
+
+ * amd/amfs_generic.c (amfs_lookup_mntfs): reset currently used
+ def_opts to options given in -opts, appended with the /default
+ options. Bug fix suggestion from Dan Riley <dsr at
+ mail.lns.cornell.edu>.
+
2005-05-13 Erez Zadok <ezk@cs.sunysb.edu>
*******************************************************************
* SUCH DAMAGE.
*
*
- * $Id: amfs_generic.c,v 1.29 2005/05/09 03:10:16 ezk Exp $
+ * $Id: amfs_generic.c,v 1.30 2005/05/16 18:08:53 ezk Exp $
*
*/
mntfs *new_mf;
if (**cur_ivec == '-') {
+ XFREE(def_opts);
if ((*cur_ivec)[1] == '\0') {
/*
* If we have a single dash '-' than we need to reset the
* default options.
*/
- XFREE(def_opts);
def_opts = strdup(orig_def_opts);
dlog("Resetting the default options, a single dash '-' was found.");
+ } else {
+ /* append options to /default options */
+ def_opts = str3cat((char *) 0, orig_def_opts, ";", *cur_ivec + 1);
+ dlog("Resetting def_opts to \"%s\"", def_opts);
}
continue;
}
* SUCH DAMAGE.
*
*
- * $Id: nfs_subr.c,v 1.29 2005/05/01 18:06:18 ib42 Exp $
+ * $Id: nfs_subr.c,v 1.30 2005/05/16 18:08:53 ezk Exp $
*
*/
int fhh_pid; /* process id */
int fhh_id; /* map id */
} s;
- char fhh_path[0]; /* path to am_node */
+ /*
+ * path to am_node. Use [1] because it's the most portable method.
+ */
+ char fhh_path[1];
} u;
};