Re: [PATCH 1/7] block: add a ->get_unique_id method

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

 



Christoph,

> +enum blk_uniqueue_id {

uniqueue as opposed to unique?

> +	/* these match the Designator Types specified in SPC */
> +	BLK_UID_T10	= 1,
> +	BLK_UID_EUI64	= 2,
> +	BLK_UID_NAA	= 3,
> +};
> +
> +#define NFL4_UFLG_MASK			0x0000003F
>  
>  struct block_device_operations {
>  	void (*submit_bio)(struct bio *bio);
> @@ -1195,6 +1203,9 @@ struct block_device_operations {
>  	int (*report_zones)(struct gendisk *, sector_t sector,
>  			unsigned int nr_zones, report_zones_cb cb, void *data);
>  	char *(*devnode)(struct gendisk *disk, umode_t *mode);
> +	/* returns the length of the identifier or a negative errno: */
> +	int (*get_unique_id)(struct gendisk *disk, u8 id[16],
> +			enum blk_uniqueue_id id_type);
>  	struct module *owner;
>  	const struct pr_ops *pr_ops;

-- 
Martin K. Petersen	Oracle Linux Engineering



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux