devfs
[Top] [All Lists]

Re: modules.devfsd needs /dev/scsi/*/part* handling

To: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Subject: Re: modules.devfsd needs /dev/scsi/*/part* handling
From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Date: 27 Jan 2002 12:15:57 +0300
Cc: Thierry Vignaud <tvignaud@xxxxxxxxxxxxxxxx>, devfs mailing list <devfs@xxxxxxxxxxx>
In-reply-to: <200201230533.g0N5XYv23380@vindaloo.ras.ucalgary.ca>
References: <1008885491.6464.4.camel@localhost.localdomain> <200201150628.g0F6SQf06569@vindaloo.ras.ucalgary.ca> <m21ygrurjk.fsf@vador.mandrakesoft.com> <200201152319.g0FNJ5S20314@vindaloo.ras.ucalgary.ca> <m2g057tbsz.fsf@vador.mandrakesoft.com> <200201152353.g0FNr5j21148@vindaloo.ras.ucalgary.ca> <1011209242.4046.5.camel@localhost.localdomain> <200201210108.g0L18uQ17789@vindaloo.ras.ucalgary.ca> <m2adv6ijdg.fsf@vador.mandrakesoft.com> <200201230533.g0N5XYv23380@vindaloo.ras.ucalgary.ca>
Sender: owner-devfs@xxxxxxxxxxx
On Срд, 2002-01-23 at 08:33, Richard Gooch wrote:
> I'd first like to establish that this will actually work. Someone
> please try this and let me know.
> 

Tested once more and it works with supermount as well, media is
correctly revalidated on media change:

ppa: Version 2.07 (for Linux 2.4.x)
ppa: Found device at ID 4, Attempting to use EPP 32 bit
ppa: Communication established with ID 4 using EPP 32 bit
scsi0 : Iomega VPI0 (ppa) interface
  Vendor: iomega    Model: jaz 2GB           Rev: E.17
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 4, lun 0
SCSI device sda: 3915600 512-byte hdwr sectors (2005 MB)
sda: Write Protect is off
 /dev/scsi/host0/bus0/target4/lun0: p4
Unable to identify CD-ROM format.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
SCSI device sda: 2091050 512-byte hdwr sectors (1071 MB)
sda: Write Protect is off
 /dev/scsi/host0/bus0/target4/lun0: p4
Unable to identify CD-ROM format.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.

Here is current devfsd.conf addition I am using:


# When removable media is (programmatically) ejected nodes for
# individual partitions are unregistered and if you have enabled
# RM(OLD|NEW)COMPAT actions links that point to them are removed.
# Unfortunately when you insert media and try to access it using
# any of these links there is nothing that tells the kernel to refresh
# partition table. To force refresh you may use something like this:
# SCSI NEWCOMPAT
LOOKUP          ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$      EXECUTE /bin/dd 
if=$mntpnt/\1 of=/dev/null count=1
# SCSI OLDCOMPAT
LOOKUP          ^(sd[a-z]+)[0-9]+$      EXECUTE /bin/dd if=$mntpnt/\1 
of=/dev/null count=1
# IDE NEWCOMPAT
LOOKUP          ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$  EXECUTE /bin/dd 
if=$mntpnt/\1 of=/dev/null count=1
# IDE OLDCOMPAT
LOOKUP          ^(hd[a-z])[0-9]+$       EXECUTE /bin/dd if=$mntpnt/\1 
of=/dev/null count=1


regards

-andrej

<Prev in Thread] Current Thread [Next in Thread>