Date: Mon, 26 Feb 2001 23:34:43 -0800 From: Dima Dorfman <dima@unixfreak.org> To: Poul-Henning Kamp <phk@critter.freebsd.dk> 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. Message-ID: <20010227073443.6AE0B3E02@bazooka.unixfreak.org> In-Reply-To: Message from Poul-Henning Kamp <phk@critter.freebsd.dk> of "Mon, 26 Feb 2001 07:34:48 %2B0100." <18182.983169288@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
> In message <20010225232907.977053E09@bazooka.unixfreak.org>, Dima Dorfman writes: > >> 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 ? > > > >Suppose I wanted to mount a swap-backed filesystem (e.g., what one > >would normally do with MFS). The UNIX way would be to write a simple > >script which ran mdconfig, disklabel, newfs, then mount, right? So > >should every FreeBSD admin have to write this script themselves, or > >should FreeBSD provide something to ease this task? > > No, it would be neat to include such a script in the system just > like we did for burncd.sh and similar. Essentially, we already have that; the EXAMPLES section in the manual page includes all the steps necessary to do it. I was thinking more along the lines of something that can be run, by the admin, without severe modifications, to create a memory disk. I used something like this while working on my last two patches to md (-l and this one), and found it invaluable. In fact, I used ``mount_md'', a program I wrote to handle fstab entires with fstype 'md' (perhaps you remember seeing that thread on -hackers). It doesn't serve that purpose particuarly well (e.g., it breaks `mount -p`), but it is useful nonetheless. I found using `mount_md -s 32m md /mnt` to mount a swap-backed disk on /tmp was much easier than mdconfig, disklabel, newfs, and mount. Thoughts? Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010227073443.6AE0B3E02>