what about to encoded long filenames in filenames of extra files? So that if a filename is too long an extra file is created which sole purpose it is to provide additional filename data in its own filename. The size of the extra file could be 0 bytes or filled with random data up to the minimum possible filesize (4096 bytes if I'm not mistaken).
Pros:
+ No file content must be read.
+ No problems with hardlinks.
+ No xattr related problems.
Cons:
- Uses more disk space.
- Possible notable performance loss when creating many small files.
- Possible arising of new problems when creating a massive massive amount of files. (Do to number of files limitation. But I believe that that is a theoretical problem and one will run out of space before that could happen.)
(I'm effected by this limitation as a Consumer-NAS-User. Non-ASCII-Filenames must be even shorter than 143. I first hit the limitation with a 63 character long filename.)
(English isn't my first language nor am I a FS expert. So I'm very sorry if I couldn't make my self clear or the proposal doesn't make any sense.)
Hello,
what about to encoded long filenames in filenames of extra files? So that if a filename is too long an extra file is created which sole purpose it is to provide additional filename data in its own filename. The size of the extra file could be 0 bytes or filled with random data up to the minimum possible filesize (4096 bytes if I'm not mistaken).
So it could "look" somewhat like this:
ECRYPTFS_ FNEK_ENCRYPTED. AbC.LONG_ FILENAME_ INDICATOR_ ID_1234_ 1_2_This_ is_a_ve- - FNEK_ENCRYPTED. AbC.LONG_ FILENAME_ INDICATOR_ ID_1234_ 2_2_ry_ long_name- -
ECRYPTFS_
ECRYPTFS_ FNEK_ENCRYPTED. AbC.LONG_ FILENAME_ INDICATOR_ ID_5782_ 1_3_Another_ very-- FNEK_ENCRYPTED. AbC.LONG_ FILENAME_ INDICATOR_ ID_5782_ 2_3_speaking_ and-- FNEK_ENCRYPTED. AbC.LONG_ FILENAME_ INDICATOR_ ID_5782_ 3_3_longish_ name--
ECRYPTFS_
ECRYPTFS_
Pros:
+ No file content must be read.
+ No problems with hardlinks.
+ No xattr related problems.
Cons:
- Uses more disk space.
- Possible notable performance loss when creating many small files.
- Possible arising of new problems when creating a massive massive amount of files. (Do to number of files limitation. But I believe that that is a theoretical problem and one will run out of space before that could happen.)
(I'm effected by this limitation as a Consumer-NAS-User. Non-ASCII-Filenames must be even shorter than 143. I first hit the limitation with a 63 character long filename.)
(English isn't my first language nor am I a FS expert. So I'm very sorry if I couldn't make my self clear or the proposal doesn't make any sense.)