Re: mount checking for read-only media

2001-02-10 Thread non
I wrote this in -current ML too, From: Kevin Brunelle [EMAIL PROTECTED] Date: Fri, 09 Feb 2001 11:10:10 -0500 It's not system call but `od' driver does check if the medium is writable or not. It returns EACCESS when the mount option is -rw and the medium is read-only. `od' is drived from

Re: mount checking for read-only media

2001-02-09 Thread non
From: Kenny Drobnack [EMAIL PROTECTED] Date: Fri, 09 Feb 2001 00:03:06 -0500 Is some system call to check the hardware to see if its physically writable? I figure there is. I want to start hacking at the kernel a bit, and it seems like something simple (comparitively) would be a good

Re: mount checking for read-only media

2001-02-09 Thread Kevin Brunelle
I am sorry if this hits the list twice. But, I think my school's mailserver has been silently dropping mail for some time now. -KB Well, This is a driver bug. The da driver, which deals with disks, doesn't check to see if the media is writable or not before allowing r/w mounts. You could

Re: mount checking for read-only media

2001-02-09 Thread Kevin Brunelle
It's not system call but `od' driver does check if the medium is writable or not. It returns EACCESS when the mount option is -rw and the medium is read-only. `od' is drived from `da' so quick hack will do the trick. This is all for scsi drives. I may not know everything, but I know most

Re: mount checking for read-only media

2001-02-09 Thread Kenny Drobnack
So it seems that probably all block devices have this bug. I haven't tried it with an ATA or SCSI hard drive, tape drive, or any flash RAM type stuff. The problem does occur on standard floppy disks and on my parallel port zip drives. If/when I do mess with it, I think I'll stick with

mount checking for read-only media

2001-02-08 Thread Kenny Drobnack
There's this little problem with FreeBSD that has been bugging me a bit for a while now. There have been a couple times I've tried to mount Zip disks or floppy drives in FreeBSD, and had the /etc/fstab set up to mount read/write, and didn't realize that I had write protect turned on. However, I

Re: mount checking for read-only media

2001-02-08 Thread Warner Losh
In message [EMAIL PROTECTED] Kenny Drobnack writes: : Is some system call to check the hardware to see if its physically : writable? I figure there is. I want to start hacking at the kernel a : bit, and it seems like something simple (comparitively) would be a good : place to start. Up

Re: mount checking for read-only media

2001-02-08 Thread Matthew Emmerton
In message [EMAIL PROTECTED] Kenny Drobnack writes: : Up there on my wish list is getting a journaling : filesystem ported to FreeBSD. You may wish to check out IBM's JFS port for Linux (http://oss.software.ibm.com/developerworks/opensource/jfs/) It's released under the GPL. The nice