How to set device parameters?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I'm trying to write a driver for a new type of iSCSI target and I'm using "bs_rdwr.c" as a reference. However, there are some things that are pretty unclear to me, and one of them is: how are parameters like sector-size and number of sectors of a device determined? I could not find code that queries these parameters from the target-device. And tgtadm doesn't seem to support such params. However, there is not much documentation, so I'm not sure about that...

To be more precise: assuming that I want to use a file as a target, how can I specify the sector-size and number of sectors/bytes?

Regards

JK
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux