From owner-freebsd-hardware Tue Apr 18 22:21:13 1995 Return-Path: hardware-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA06416 for hardware-outgoing; Tue, 18 Apr 1995 22:21:13 -0700 Received: (from julian@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA06359 ; Tue, 18 Apr 1995 22:19:33 -0700 Date: Tue, 18 Apr 1995 22:19:33 -0700 From: Julian Elischer Message-Id: <199504190519.WAA06359@freefall.cdrom.com> To: fs, hackers, hardware Subject: [DEVFS] your opinions sought! Sender: hardware-owner@FreeBSD.org Precedence: bulk I am about ready to let people hack at devfs. but one thing I'm not sure about: what is a good way for the devfs to appear? I personally favour something hierachical, such as: /devices/disks/sd0/all /devices/disks/sd0/FAT/all /* I suppose it could be called C: */ /devices/disks/sd0/BSD/all /devices/disks/sd0/BSD/a /devices/disks/sd0/BSD/b /devices/disks/sd0/BSD/c /devices/disks/sd0/99/all /* MACH but not recognised */ /devices/disks/sd0/DOSX/all /devices/disks/sd0/DOSX/A /devices/disks/sd0/DOSX/B /devices/disks/sd1/all /devices/disks/sd1/BSD/all /devices/disks/sd1/BSD/b /devices/disks/sd1/BSD/c /devices/disks/sd1/BSD/d /devices/disks/wd0/all /devices/disks/wd0/BSD/all /devices/disks/wd0/BSD/a but maybe the following might be as good: (same disk) (P=PARTITION, S=SLICE) /devices/sd0 /devices/sd0P0 /devices/sd0P1 /devices/sd0P1Sa /devices/sd0P1Sb /devices/sd0P1Sc /devices/sd0P2 /devices/sd0P3 /devices/sd0P3Sa /devices/sd0P3Sb /devices/sd1 /devices/sd1P0 /devices/sd1 /devices/sd1Sa /* no MBR? */ /devices/sd1Sb /devices/sd1Sc /devices/wd0 /devices/wd0P0Sa Whichever scheme is chosen, I expect a link (or symlink) from /devices/scsi/bus0/targ0/lun0/all->/devices/disks/sd0/all or something similar e.g. /devices/scsi/b0t0l0 -> ../../disks/sd0 (?) or /devices/scsi/b0t0l0_all hardlink to /devices/sd0 (?) /devices/scsi/b0t0l0_P0 hardlink to /devices/sd0P0 (?) /devices/scsi/b0t0l0_P1Sa hardlink to /devices/sd0P1Sa (?) remember: you can only hardlink devices not directories you can symlink anything but it takes a longer lookup sequence. (also symlinks are not supported yet) julian