ocs-onthefly doesn't detect cciss disks and partitions. Changing to use the common gen_proc_partitions_map_file function which in turn uses cciss_dev_map_if_necessary looks like it would do the trick.
I've no patch because it looks like a reasonably sizable change. I was comparing against ocs-sr where all these device checks are factored out into common functions in ocs-functions. Unfortunately ocs-onthefly does everything by hand with statements like:
part_in_hd="$(LC_ALL=C grep -Eo "$source_hd[[:digit:]]+" /proc/partitions)"
for part in $part_in_hd; do
where $source_hd must look like [hs]d[a-z] which will never match the cciss partitions which look like cciss/c0d0p[1-9] for the cciss/c0d0 drive.
The common code instead creates links called sda1, etc. for those devices and adds extra details everytime /proc/partitions is examined.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the bug report. Could you please provide the patch file or give more details about the modifications you mentioned?
Thanks in advance.
Steven.
Hi Steven
I've no patch because it looks like a reasonably sizable change. I was comparing against ocs-sr where all these device checks are factored out into common functions in ocs-functions. Unfortunately ocs-onthefly does everything by hand with statements like:
part_in_hd="$(LC_ALL=C grep -Eo "$source_hd[[:digit:]]+" /proc/partitions)"
for part in $part_in_hd; do
where $source_hd must look like [hs]d[a-z] which will never match the cciss partitions which look like cciss/c0d0p[1-9] for the cciss/c0d0 drive.
The common code instead creates links called sda1, etc. for those devices and adds extra details everytime /proc/partitions is examined.
Thanks. Will try to make ocs-onthefly work with CCISS device in the future.
Steven.