Thread (1 message) 1 message, 1 author, 2021-10-20

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

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-10-20 03:47:34
Also in: linux-nfs, linux-scsi, target-devel

Christoph,
+enum blk_uniqueue_id {
uniqueue as opposed to unique?
quoted hunk
+	/* 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help