Re: [PATCH 4/4] tgt-admin: Base blocksize & params on backing store if direct-store

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

On 01/06/2012 01:53 AM, Andy Grover wrote:
Use sg_inq and sg_readcap to read properties of backing device for
direct-store LUNs. Pass these values to tgtadm so the exported LUN can
match its backstore.


  			# Add these parameters if they were not overwritten in the config file
@@ -581,7 +614,8 @@ sub add_backing_direct {
  			# These options can be fetched by sg_inq for direct-store
-			my @opts = ("vendor_id", "product_id", "product_rev", "scsi_sn");
+			my @opts = ("vendor_id", "product_id", "product_rev", "scsi_sn",
+				    "lbppbe", "la_lba", "optimal_xfer_gran", "optimal_xfer_len");
  			foreach my $single_opt (@opts) {
  				my $this_opt;

Can we have the examples of these new options added to the sample config file as well?
This way, a user can see what's possible to set.

Tomasz Chmielewski
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [XFree86]
  Powered by Linux