18 Jan
2002
18 Jan
'02
14:52
Rikard Johnels
I have a lill odd problem.. :/ I have a file with too long file name.. And even root cant remove/rename it...
There are two limits in /usr/include/linux/limits.h: #define NAME_MAX 255 /* # chars in a file name */ #define PATH_MAX 4095 /* # chars in a path name */ Which one have you exceeded? IMHO, a filename longer than 255 chars indicates a kernel problem (and fsck is recommended). A problem with the path length can be fixed (IMHO) by moving the directory containing the file up in the directory tree structure. There are also tools like debugfs. -- Alexandr.Malusek@imv.liu.se