From owner-freebsd-bugs Sat Feb 24 8:41:16 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id B480B37B6A3 for ; Sat, 24 Feb 2001 08:41:12 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f1OGfOM08222; Sat, 24 Feb 2001 17:41:24 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Dima Dorfman Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/25273: add fs type feature to vnconfig(8) to allow direct mount of iso images and co. In-Reply-To: Your message of "Thu, 22 Feb 2001 21:30:02 PST." <200102230530.f1N5U2c04134@freefall.freebsd.org> Date: Sat, 24 Feb 2001 17:41:24 +0100 Message-ID: <8220.983032884@critter> From: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > "send patches" doesn't count as interested in your book ? :-) > > Fair enough. See attached. It implements the 'feature' feature (yes, > it's called 'feature') of vnconfig in mdconfig. I couldn't think of a > better name, so I also called it 'feature'. The real issue here is of course that I cannot mount a filesystem which happens to live in a file, I can only mount disk devices. If there are valid reasons for this, we should not hide the extra gymnastics needed to circumvent this. If there are no (longer ?) valid reasons for this we should fix (ie: remove) the restriction rather than patch around it. Regarding your patch: I don't like it that much because in essence it amounts to: mdconfig bla bla -feature "execute this command afterwards" Ie: mdconfig -c -f mycd.iso -feature cd9660,/cdimg In my book that is not the UNIX way. The UNIX way is: mount -t cd9660 /dev/`mdconfig -c -f mycd.iso` /cdimg And you can do that without changing mdconfig... Comments ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message