I discovered a new twist on this problem: It appears to me that I am not running into the ext3 limitation of 254 chars per se, but rather something more akin to a PATH LENGTH limitation somewhere else in the code.
In fact, when you look at the error messages (with dmesg), you see a pathname which is much longer than 254 chars, for example (my test case)
ecryptfs_lookup: lookup_one_len() returned [-36] on lower_dentry =
[ECRYPTFS_FNEK_ENCRYPTED.FfYZTa2tGpIYbEZbarH8eVFOQu-N7jr7t2mDaEqXtCmeQTYUmp0L7EuVHMros54PfYi9lghUYG4pmMilVowMecKV2rPFuIDn9O4u.LJI5CqZRYX68tbVD-MR-ep4InDbzYArt.WRudsdq-YTD2epjmTNjgjpFDqWvTZvPC9gJgh9BN4njWSXubQnz2W-.1Eus44cOgPqXiHHdmvYSLigmrMcRaMtzCuJVNvWLhHzu1i2rWiTaH0pUnk0T---]
There is more than 1400 chars here (maybe more, I do not know whether the --- at the end means more chars follow).
I may be blowing smoke here, so please correct me as needed. I could not find the code that generates the error message by searching (find . -type f -print | xargs grep "File name too long") in the ecryptfs-utils src code, so the message must be coming from the kernel module? I have to download my kernel src and take a look.
I discovered a new twist on this problem: It appears to me that I am not running into the ext3 limitation of 254 chars per se, but rather something more akin to a PATH LENGTH limitation somewhere else in the code.
In fact, when you look at the error messages (with dmesg), you see a pathname which is much longer than 254 chars, for example (my test case)
ecryptfs_lookup: lookup_one_len() returned [-36] on lower_dentry = FNEK_ENCRYPTED. FfYZTa2tGpIYbEZ barH8eVFOQu- N7jr7t2mDaEqXtC meQTYUmp0L7EuVH Mros54PfYi9lghU YG4pmMilVowMecK V2rPFuIDn9O4u. LJI5CqZRYX68tbV D-MR-ep4InDbzYA rt.WRudsdq- YTD2epjmTNjgjpF DqWvTZvPC9gJgh9 BN4njWSXubQnz2W -.1Eus44cOgPqXi HHdmvYSLigmrMcR aMtzCuJVNvWLhHz u1i2rWiTaH0pUnk 0T---]
[ECRYPTFS_
There is more than 1400 chars here (maybe more, I do not know whether the --- at the end means more chars follow).
I may be blowing smoke here, so please correct me as needed. I could not find the code that generates the error message by searching (find . -type f -print | xargs grep "File name too long") in the ecryptfs-utils src code, so the message must be coming from the kernel module? I have to download my kernel src and take a look.