Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 1997 11:21:33 +0100
From:      J Wunsch <j@uriah.heep.sax.de>
To:        hackers@freebsd.org
Subject:   Re: problem mounting /cdrom w/ 2.2.5-R (fwd)
Message-ID:  <19971126112133.64082@uriah.heep.sax.de>
In-Reply-To: <Pine.BSF.3.95.971124015720.29845D-100000@current1.whistle.com>; from Julian Elischer on Mon, Nov 24, 1997 at 01:59:28AM -0800
References:  <19971124093009.OQ45903@uriah.heep.sax.de> <Pine.BSF.3.95.971124015720.29845D-100000@current1.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As Julian Elischer wrote:

> mount /cdrom uses the read-only flag
> becasue it's in the fstab.
> I'm not convinced that mount_cd9660 sets it by default.

It does.  The cd9660 code would reject an attempt to mount a CD-ROM
without MNT_RDONLY anyway.  Here's the snippet from mount_cd9660:

	/*
	 * ISO 9660 filesystems are not writeable.
	 */
	mntflags |= MNT_RDONLY;
	args.export.ex_flags = MNT_EXRDONLY;
	args.fspec = dev;
	args.export.ex_root = DEFAULT_ROOTUID;
	args.flags = opts;

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971126112133.64082>