+2005-05-01 Daniel P. Ottavio <dottavio@ic.sunysb.edu>
+
+ * amd/amfs_host.c (amfs_host_umount): We do not want to pass
+ ENOENT as an error because if the directory does not exists our
+ work is done anyway.
+
+ * conf/umount/umount_linux.c (umount_fs): If we are successful or
+ there was an ENOENT, remove the mount entry from the mtab file.
+
2005-05-01 Ion Badulescu <ionut@moisil.badula.org>
* amd/nfs_subr.c: am_fh definition moved here from amd.h;
* SUCH DAMAGE.
*
*
- * $Id: amfs_host.c,v 1.30 2005/04/07 05:50:38 ezk Exp $
+ * $Id: amfs_host.c,v 1.31 2005/05/02 00:27:47 ottavio Exp $
*
*/
* Keep track of errors
*/
if (error) {
- if (!xerror)
+ /*
+ * If we have not already set xerror and error is not ENOENT,
+ * then set xerror equal to error and log it.
+ * 'xerror' is the return value for this function.
+ *
+ * We do not want to pass ENOENT as an error because if the
+ * directory does not exists our work is done anyway.
+ */
+ if (!xerror && error != ENOENT)
xerror = error;
if (error != EBUSY) {
errno = error;
* SUCH DAMAGE.
*
*
- * $Id: umount_linux.c,v 1.3 2005/03/05 07:09:17 ezk Exp $
+ * $Id: umount_linux.c,v 1.4 2005/05/02 00:27:47 ottavio Exp $
*
*/
}
dlog("Finished unmount(%s)", mp_save->mnt->mnt_dir);
- if (!error) {
+ /*
+ * If we are successful or there was an ENOENT, remove
+ * the mount entry from the mtab file.
+ */
+ if (!error || error == ENOENT) {
#ifdef HAVE_LOOP_DEVICE
/* look for loop=/dev/loopX in mnt_opts */
char *opt, *xopts=NULL;