[PATCH 1/4] nvmet: change sn size and check validity

Max Gurtovoy mgurtovoy at nvidia.com
Mon Apr 26 14:15:33 BST 2021


On 4/23/2021 6:51 PM, Keith Busch wrote:
> On Tue, Apr 20, 2021 at 09:09:00AM +0000, Max Gurtovoy wrote:
>> +/* See Section 1.5 of NVMe 1.4 */
>> +static bool nvmet_is_ascii(const char c)
>> +{
>> +	return c >= 0x20 && c <= 0x7e;
>> +}
> There's a library function, "isprint()", that can provide this check.

This is an existing function in the code.

We'll add a dedicated commit to replace it.




More information about the Linux-nvme mailing list