
Re: Invalid argument when setting ntfs_dos_name
Hi,
Quote:
I'm attempting to restore an 8.3 short filename on a file that has encoded japanese characters. getfattr successfully extracts the value, but setfattr fails with an "Invalid argument" error.
There is a bug in older versions which may turn out when the short name contains lower-case (latin) characters. There are also restrictions to the allowed characters, and the name must be unique in a directory.
Quote:
I suspect it is an arbitrary length check that is failing before decoding the value, since I can shorten the name by one multibyte character and restore that value. I tried using the base64 encoded value as well as the hex value but both fail with same error message.
There is no check on the length, only a truncation to 12 chars. Can you post an example of short name which is rejected (base64 or hex) ?
Regards
Jean-Pierre