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

Tomasz Chmielewski mangoo at wpkg.org
Fri Jan 6 10:08:40 CET 2012


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) {
>   				check_if_hash_array($$target_options_ref{$single_opt},$single_opt);
>   				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
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list