LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Should Raid come up as a Block Device? (https://www.linuxquestions.org/questions/programming-9/should-raid-come-up-as-a-block-device-324426/)

tantrix 05-17-2005 12:41 PM

Should Raid come up as a Block Device?
 
I created a Linux Block Raid-5 array to be used as an iSCSI device over TCP/IP.. The problem is that te /dev/md0 device doesn't show up as a block device. In the strace, the same ioctl that passes for /dev/sd0 and /dev/sg0 fails for /dev/md0. The ioctl I'm using is SG_GET_VERSION_NUM.

Also, lets assume that I don't have /dev/md0 created, even then opening

/dev/md0 doesn't give an error. For example, if I run:

open(devName, O_RDWR) // devName = "/dev/md3"

in strace it actually opens a device. Whereas, if I run:

open(devName, O_RDWR) // devName = "/dev/sd5"

where /dev/sd5 doesn't exist, then it complains. This doesn't make any sense to me.


All times are GMT -5. The time now is 02:43 AM.