When failed to read disklabel to deduce filesystem type,

- don't warn.  It's just too verbose when we know there is
	  no disklabel and want to use the default filesystem type.
	- close the file descriptor so that further mount success.
This commit is contained in:
enami 2000-11-01 04:06:49 +00:00
parent a56e1ec458
commit 290c3a67ba

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount.c,v 1.53 2000/11/01 04:01:45 enami Exp $ */
/* $NetBSD: mount.c,v 1.54 2000/11/01 04:06:49 enami Exp $ */
/*
* Copyright (c) 1980, 1989, 1993, 1994
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
#else
__RCSID("$NetBSD: mount.c,v 1.53 2000/11/01 04:01:45 enami Exp $");
__RCSID("$NetBSD: mount.c,v 1.54 2000/11/01 04:06:49 enami Exp $");
#endif
#endif /* not lint */
@ -619,7 +619,7 @@ getfslab(str)
}
if (ioctl(fd, DIOCGDINFO, &dl) == -1) {
warn("cannot get disklabel for `%s'", str);
(void) close(fd);
return (NULL);
}