* Re: [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP
2025-07-22 9:13 ` [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP Anuj Gupta
@ 2025-07-22 9:14 ` Christoph Hellwig
2025-07-22 11:00 ` Jens Axboe
2025-07-22 11:04 ` Martin K. Petersen
2 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2025-07-22 9:14 UTC (permalink / raw)
To: Anuj Gupta
Cc: vincent.fu, anuj1072538, axboe, hch, martin.petersen, linux-block,
joshi.k
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP
2025-07-22 9:13 ` [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP Anuj Gupta
2025-07-22 9:14 ` Christoph Hellwig
@ 2025-07-22 11:00 ` Jens Axboe
2025-07-22 11:57 ` Anuj gupta
2025-07-22 11:04 ` Martin K. Petersen
2 siblings, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2025-07-22 11:00 UTC (permalink / raw)
To: Anuj Gupta, vincent.fu, anuj1072538, hch, martin.petersen
Cc: linux-block, joshi.k
On 7/22/25 3:13 AM, Anuj Gupta wrote:
> The blk_get_meta_cap() implementation directly assigns bi->csum_type to
> the UAPI field lbmd_guard_tag_type. This is not right as the kernel enum
> blk_integrity_checksum values are not guaranteed to match the UAPI
> defined values.
>
> Fix this by explicitly mapping internal checksum types to UAPI-defined
> constants to ensure compatibility and correctness, especially for the
> devices using CRC64 PI.
>
> Fixes: 9eb22f7fedfc ("fs: add ioctl to query metadata and protection info capabilities")
Where is this sha? It's not in the block or upstream tree, presumably
it's in the vfs tree due to it being an fs commit? In which case
you should probably CC that side, as this cannot be picked up on
the block side.
--
Jens Axboe
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP
2025-07-22 11:00 ` Jens Axboe
@ 2025-07-22 11:57 ` Anuj gupta
2025-07-22 12:02 ` Jens Axboe
0 siblings, 1 reply; 6+ messages in thread
From: Anuj gupta @ 2025-07-22 11:57 UTC (permalink / raw)
To: Jens Axboe
Cc: Anuj Gupta, vincent.fu, hch, martin.petersen, linux-block,
joshi.k
>
> Where is this sha? It's not in the block or upstream tree, presumably
> it's in the vfs tree due to it being an fs commit? In which case
> you should probably CC that side, as this cannot be picked up on
> the block side.
>
Thanks Jens, you're right — the original patch went through the VFS
tree. I'll resend the patch and CC Christian and fsdevel accordingly so
that it can be routed through the correct tree.
Thanks,
Anuj Gupta
> --
> Jens Axboe
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP
2025-07-22 11:57 ` Anuj gupta
@ 2025-07-22 12:02 ` Jens Axboe
0 siblings, 0 replies; 6+ messages in thread
From: Jens Axboe @ 2025-07-22 12:02 UTC (permalink / raw)
To: Anuj gupta
Cc: Anuj Gupta, vincent.fu, hch, martin.petersen, linux-block,
joshi.k
On 7/22/25 5:57 AM, Anuj gupta wrote:
>>
>> Where is this sha? It's not in the block or upstream tree, presumably
>> it's in the vfs tree due to it being an fs commit? In which case
>> you should probably CC that side, as this cannot be picked up on
>> the block side.
>>
> Thanks Jens, you're right ? the original patch went through the VFS
> tree. I'll resend the patch and CC Christian and fsdevel accordingly so
> that it can be routed through the correct tree.
Sounds good, otherwise I don't think it's going anywhere. You can add
Reviewed-by: Jens Axboe <axboe@kernel.dk>
as well.
--
Jens Axboe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP
2025-07-22 9:13 ` [PATCH v2] block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP Anuj Gupta
2025-07-22 9:14 ` Christoph Hellwig
2025-07-22 11:00 ` Jens Axboe
@ 2025-07-22 11:04 ` Martin K. Petersen
2 siblings, 0 replies; 6+ messages in thread
From: Martin K. Petersen @ 2025-07-22 11:04 UTC (permalink / raw)
To: Anuj Gupta
Cc: vincent.fu, anuj1072538, axboe, hch, martin.petersen, linux-block,
joshi.k
Anuj,
> The blk_get_meta_cap() implementation directly assigns bi->csum_type to
> the UAPI field lbmd_guard_tag_type. This is not right as the kernel enum
> blk_integrity_checksum values are not guaranteed to match the UAPI
> defined values.
>
> Fix this by explicitly mapping internal checksum types to UAPI-defined
> constants to ensure compatibility and correctness, especially for the
> devices using CRC64 PI.
Looks fine.
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
--
Martin K. Petersen
^ permalink raw reply [flat|nested] 6+ messages in thread