Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137324151
D43599.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
560 B
Referenced Files
None
Subscribers
None
D43599.diff
View Options
diff --git a/usr.sbin/camdd/camdd.c b/usr.sbin/camdd/camdd.c
--- a/usr.sbin/camdd/camdd.c
+++ b/usr.sbin/camdd/camdd.c
@@ -1430,9 +1430,8 @@
*maxsector = nsdata.nsze;
/* The LBA Data Size (LBADS) is reported as a power of 2 */
- format = nsdata.flbas & NVME_NS_DATA_FLBAS_FORMAT_MASK;
- lbads = (nsdata.lbaf[format] >> NVME_NS_DATA_LBAF_LBADS_SHIFT) &
- NVME_NS_DATA_LBAF_LBADS_MASK;
+ format = NVMEV(NVME_NS_DATA_FLBAS_FORMAT, nsdata.flbas);
+ lbads = NVMEV(NVME_NS_DATA_LBAF_LBADS, nsdata.lbaf[format]);
*block_len = 1 << lbads;
retval = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 23, 11:44 AM (1 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25968318
Default Alt Text
D43599.diff (560 B)
Attached To
Mode
D43599: camdd: Use the NVMEV macro instead of expanded versions
Attached
Detach File
Event Timeline
Log In to Comment