title: How can I increase the MAX_PATH_LENGTH in a freeBSD system?
body: <p>I am writing a 'find' like utility to search some particular files in a freebsd based system. The stat() call in freeBSD 9 can accept paths with length 1024 chars, though linux supports upto 4K char paths.</p>
  
  <p>The system itself has a filesystem other than freeBSD's (its a commercial OS) and that filesystem has a very high limit on MAX_PATH_LENGTH.</p>
  
  <p>If some user mounted a volume on linux and created a directory hierarchy with path length greater than 1K, then though the filesystem will support it, the freeBSD lstat/stat calls will fail.</p>
  
  <p>Is there a way around, or can I get this limit increased somehow?</p>