Finding the length of files and file path of directory structure in a Linux file system.

Posted by Robert Nickens on Server Fault See other posts from Server Fault or by Robert Nickens
Published on 2010-06-01T12:10:55Z Indexed on 2010/06/01 12:13 UTC
Read the original article Hit count: 200

Filed under:
|

I have a problem on a Linux OS running a version of SMB where if the absolute path to a directory within a Shared Folder is greater than 1024 bytes and the filename component is greater than 256 bytes the SMB service crashes and locks out all other services for network access like, SSH and FTP rendering the machine mute.

To keep the system for crashing I’ve temporarily moved a group of folders where I think the problem path may be located outside of Shared Folder. I need to find the file and file path that exceeded this limitation and rename them or remove them allowing me to return a bulk of the files to the Shared Folder.

I’ve tried the find and grep commands without success. Is there a chain of commands or script that I can use to hunt down the offending files and directory?

Please advise.

© Server Fault or respective owner

Related posts about linux

Related posts about filesystems