new block device major/minor ?



I want to create a new kind of network block device, similar in concept
to the network block device already assigned to block major 43. But I
want to make this different in a way that will support partitioning of
the device, if a recognized partition table is present. Since network
block device expectations for major 43 are a series of non-partition
devices, I don't think I should re-use that major number (except perhaps
for cases of non-partitioned devices).

So that begs the question if I should try to get a new major allocated
at some time if this new driver works out. But I thought of this other
possibility. Pluggable devices like USB or Firewire disks simply add on
to devices in block majors 8, 65-71, and 128-135, and these already have
partition support. What if I were to make a network device that just
"plug in" to the SCSI device space like USB and Firewire do (but in this
case activated by an appropriate syscall, probably ioctl)? This sure
seems like it could simplify things by not having to create new device
number space (I think 256 SCSI subsystem devices should suffice for most
users).

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-03-30-2323@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • GFS + XEN
    ... connected block device rather than on a network block device (as ... RedHat Certified Engineer Number: 804005539516829 ...
    (RedHat)
  • Re: [8/7] dst: kconfig update.
    ... DST is a network block device storage, which can be used to organize ... exported storages on the remote nodes into the local block device. ...
    (Linux-Kernel)
  • Re: LVM problem
    ... Look up "network block device" and re-read the first paragraph I wrote. ... connected disk, so don't do that unless you have no other choice. ...
    (comp.os.linux.misc)
  • Re: file server
    ... I, too, don't think that Beowolf would have anything to do with disk ... but perhaps the network block device in recent ... RAID-0 (or maybe even an LVM volume group) to achieve that goal. ...
    (comp.os.linux.misc)
  • [PATCH] blkdev_wait_scan module to help initrd scripts
    ... During initrd scripts we load block device modules which asynchronously perform partition scans. ... These partition checks must have been completed before later parts of the scripts run ... Under load, especially for virtual machines, the partition scans aren't completed in time and consequently vgscan doesn't find the volume group containing root, and the virtual machine fails to boot. ... Function rescan_partitions is modified so that during the scan it puts the block device on this list, and takes it off after the scan is completed. ...
    (Linux-Kernel)