Files
Centos-kernel-stream-9/block
Ming Lei 26a1c5e646 block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP
JIRA: https://issues.redhat.com/browse/RHEL-154215

commit bc5b0c8febccbeabfefc9b59083b223ec7c7b53a
Author: Anuj Gupta <anuj20.g@samsung.com>
Date:   Tue Jul 22 17:37:55 2025 +0530

    block: fix lbmd_guard_tag_type assignment in FS_IOC_GETLBMD_CAP

    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")
    Reported-by: Vincent Fu <vincent.fu@samsung.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    Link: https://lore.kernel.org/20250722120755.87501-1-anuj20.g@samsung.com
    Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Christian Brauner <brauner@kernel.org>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2026-03-19 16:10:23 +08:00
..
2026-03-10 16:32:37 +08:00
2025-09-12 00:28:08 +08:00
2025-09-16 18:11:38 +08:00