Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2001 21:16:16 +0900
From:      non@ever.sanda.gr.jp
To:        current@FreeBSD.ORG
Cc:        trevor@jpj.net, akiyama@FreeBSD.ORG
Subject:   Re: od driver for -CURRENT
Message-ID:  <20010209211616W.non@ever.sanda.gr.jp>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Kenneth D. Merry" <ken@kdm.org>
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




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