From owner-freebsd-current Fri Feb 9 4:16:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by hub.freebsd.org (Postfix) with ESMTP id 43AE237B6E7; Fri, 9 Feb 2001 04:16:19 -0800 (PST) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.9.3/3.7W) with ESMTP id VAA76642; Fri, 9 Feb 2001 21:16:17 +0900 (JST) From: non@ever.sanda.gr.jp Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id VAA01834; Fri, 9 Feb 2001 21:16:17 +0900 (JST) To: current@FreeBSD.ORG Cc: trevor@jpj.net, akiyama@FreeBSD.ORG Subject: Re: od driver for -CURRENT In-Reply-To: <20010208102010.A12099@panzer.kdm.org> References: <20010207171156.A72756@cicely5.cicely.de> <20010208214259C.non@ever.sanda.gr.jp> <20010208102010.A12099@panzer.kdm.org> X-Mailer: Mew version 1.94 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010209211616W.non@ever.sanda.gr.jp> Date: Fri, 09 Feb 2001 21:16:16 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 51 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: "Kenneth D. Merry" Subject: Re: od driver for -CURRENT > > By the way, in Japanese users mailing list, some said that `da' does > > not check whether a medium is writerable or not (write > > protected). If you mount a write protected medium with -rw, it will > > lead bad condition when you do umount. > > Hmm, can you demonstrate the problem? The write-protect check in the od > driver is one of the things that the da driver doesn't have. I figured it > wouldn't really be necessary, since any attempted writes would be returned > with errors. The problem is you cannot unmount after -rw mount with a write-protected medium. Below has been done also in 4.2-RELEASE with GENERIC kernel, 1. Insert a write protected medium, 2. mount /dev/da0s1c /mnt, cel# mount /dev/da0s1c /mnt 3. umount /mnt cel# umount /mnt umount: unmount of /mnt failed: Input/output error cel# umount /mnt umount: unmount of /mnt failed: Input/output error Umount does not success and `Write protected' messages continue to appear 4. reboot (umount fails) In /var/log/mesages, Feb 9 21:10:28 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 7 c9 2 0 Feb 9 21:10:28 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0 Feb 9 21:10:28 cel /kernel: (da0:ahc0:0:3:0): Write protected Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 7 c9 2 0 Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0 Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): Write protected Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 7 c9 2 0 Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0 Feb 9 21:10:35 cel /kernel: (da0:ahc0:0:3:0): Write protected Feb 9 21:10:40 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 0 49 4 0 Feb 9 21:10:40 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0 Feb 9 21:10:40 cel /kernel: (da0:ahc0:0:3:0): Write protected Feb 9 21:11:09 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 0 49 4 0 Feb 9 21:11:09 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0 Feb 9 21:11:09 cel /kernel: (da0:ahc0:0:3:0): Write protected Feb 9 21:11:38 cel /kernel: (da0:ahc0:0:3:0): WRITE(06). CDB: a 0 0 49 4 0 Feb 9 21:11:38 cel /kernel: (da0:ahc0:0:3:0): DATA PROTECT asc:27,0 Feb 9 21:11:38 cel /kernel: (da0:ahc0:0:3:0): Write protected Hope this helps. // Noriaki Mitsunaga // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message