Filename too long
Mantis Issue 675, reported by jmalik, assigned to ghost, created: 2013-03-11
With our current strategy of serializing the input path into a directory name, we can exceed the max filename length limit :
System error 36: File name too long ('/home/jmalik/mvd2/_media_otbnas_otb_OTB-LargeInput_WORLDVIEW2_ROME_WV-2_standard_8band_bundle_16bit_052298844010_01_P001_MUL_09DEC10103019-M2AS-052298844010_01_P001.TIF.ds').
We need a different strategy :
- option 1 : recreate the hierarchy inside the mvd2 dir
- option 2 : hash the path (reliable enough ?)
- option 3 : hash the file content (too long to process ?)
- option 4 : any better idea ?
cf http://en.wikipedia.org/wiki/Comparison_of_file_systems
The dataset directory cannot exceed 255 characters.
1363029626 - julienmConfirmed, this has nothing to do with Monteverdi2 code :
jmalik@jmalik:~/mvd2$ mkdir _media_otbnas_otb_OTB-LargeInput_WORLDVIEW2_ROME_WV-2_standard_8band_bundle_16bit_052298844010_01_P001_MUL_09DEC10103019-M2AS-052298844010_01_P001.TIF.ds mkdir: cannot create directory `_media_otbnas_otb_OTB-LargeInput_WORLDVIEW2_ROME_WV-2_standard_8band_bundle_16bit_052298844010_01_P001_MUL_09DEC10103019-M2AS-052298844010_01_P001.TIF.ds': File name too long
1363030117 - julienmMD5 on Worldview2 PAN (40 MB, on remote NAS) : jmalik@jmalik:~/dev/build/Monteverdi2$ time md5sum /media/otbnas/otb/OTB-LargeInput/WORLDVIEW2/ROME/WV-2_standard_8band_bundle_16bit/052298844010_01_P001_PAN/09DEC10103019-P2AS-052298844010_01_P001.TIF 9957174d50ca776335afd52d099c9e4d /media/otbnas/otb/OTB-LargeInput/WORLDVIEW2/ROME/WV-2_standard_8band_bundle_16bit/052298844010_01_P001_PAN/09DEC10103019-P2AS-052298844010_01_P001.TIF
real 0m3.795s user 0m0.120s sys 0m0.012s
MD5 on Pleiades (>2GB, on a remote