From owner-cvs-all Sun Sep 30 7:57:14 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DC0D037B409; Sun, 30 Sep 2001 07:57:08 -0700 (PDT) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8UEv8I92083; Sun, 30 Sep 2001 07:57:08 -0700 (PDT) (envelope-from iedowse) Message-Id: <200109301457.f8UEv8I92083@freefall.freebsd.org> From: Ian Dowse Date: Sun, 30 Sep 2001 07:57:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/tunefs tunefs.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2001/09/30 07:57:08 PDT Modified files: sbin/tunefs tunefs.c Log: Don't require that the special/filesystem argument translates into a block or character device; the rest of tunefs works just fine on filesystem images in regular files. Instead, if getfsfile() failed and if the specified filesystem is a directory then print a more useful "unknown file system" error. Also, _PATH_DEV already contains a trailing slash, so don't add another one when constructing a device path, and use errx() instead of err() in a case where errno is meangingless. Revision Changes Path 1.20 +5 -6 src/sbin/tunefs/tunefs.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message