libblkid & empty identifier values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Technically UDF filesystem allows to store empty string values. 
LogicalVolumeIdentifier (label) according to UDF specification shall not 
be null, but it is possible to store empty string there.

Question is, what should libblkid's udf code do if e.g. LABEL identifier 
is empty string? Should it set empty LABEL for libblkid? Or it should 
not set LABEL at all?

Currently in blkid_probe_set_label() is check for len > 1, so empty 
string is not possible to store for LABEL. But when check fails function 
return non-negative value which is understood as succeeded -- even it 
did not store empty string. It does not looks good... Or it is expected?

-- 
Pali Rohár
pali.rohar@xxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux