Skip to content

The byte order of Expected Initial Logical Block Reference Tag in copy fmt1 source range #2975

@chenghong085

Description

@chenghong085

The function nvme_init_copy_range_elbt converts eilbrt to big-endian, I think it should be little-endian, same as eilbrt in fmt0.

static inline void nvme_init_copy_range_elbt(__u8 *elbt, __u64 eilbrt)
{
	int i;

	for (i = 0; i < 8; i++)
		elbt[9 - i] = (eilbrt >> (8 * i)) & 0xff;
	elbt[1] = 0;
	elbt[0] = 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions