New -find test -name_limit_blocker. Made -file_name_limit ready for loaded ISOs

This commit is contained in:
2015-09-28 14:17:34 +00:00
parent 7bd6c0fe77
commit 83b32e51f8
11 changed files with 359 additions and 92 deletions

View File

@ -894,13 +894,17 @@ activate them only after image loading.
bytes of the whole oversized name. Potential incomplete UTF-8
characters will get their leading bytes replaced by '_'.
iso_rr_paths with the long components will still be able to access
the file paths with truncated components. To avoid confusion by
having both truncated and untruncated names in the same directory,
it is highly deprecated to change this setting after a drive was
acquired. All file names must get truncated by the same length.
Normally this command will produce a SORRY event if it is executed
while a drive is aquired. One may override this ban by prepending
the character "+" to the argument of -file_name_limit.
the file paths with truncated components.
If -file_name_limit is executed while an ISO tree is present, the
file names in the ISO tree get checked for existing truncated file
names of the current limit and for name collisions between newly
truncated files and existing files. In both cases, the setting
will be refused with a SORRY event.
One may lift this ban by prepending the character "+" to the
argument of -file_name_limit. Truncated filenames may then get
truncated again, invalidating their MD5 part. Colliding truncated
names are made unique, consuming at least 9 more bytes of the
remaining name part.
If writing of xattr is enabled, then the length will be stored in
"isofs.nt" of the root directory. If reading of xattr is enabled
and "isofs.nt" is found, then the found length will get into effect
@ -1620,6 +1624,10 @@ File: xorriso.info, Node: CmdFind, Next: Filter, Prev: Manip, Up: Commands
mandatory name components. "rockridge" uses the character set
defined by -out_charset, "joliet" uses UCS-2BE, "ecma119" uses
ASCII, "hfsplus" uses UTF-16BE.
-name_limit_blocker length :
Matches file names which would prevent command
-file_name_limit with the given length. The command itself
reports only the first problem file.
-prune :
If this test is reached and the tested file is a directory
then -find will not dive into that directory. This test
@ -5033,11 +5041,11 @@ File: xorriso.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: Top
* -assert_volid rejects undesired images: Loading. (line 111)
* -auto_charset learns character set from image: Loading. (line 123)
* -backslash_codes enables backslash conversion: Scripting. (line 71)
* -ban_stdio_write demands real drive: Loading. (line 312)
* -ban_stdio_write demands real drive: Loading. (line 316)
* -biblio_file sets biblio file name: SetWrite. (line 234)
* -blank erases media: Writing. (line 57)
* -boot_image controls bootability: Bootable. (line 65)
* -calm_drive reduces drive activity: Loading. (line 302)
* -calm_drive reduces drive activity: Loading. (line 306)
* -cd sets working directory in ISO: Navigate. (line 7)
* -cdx sets working directory on disk: Navigate. (line 15)
* -changes_pending overrides change status: Writing. (line 12)
@ -5071,7 +5079,7 @@ File: xorriso.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: Top
* -cp_rx copies file trees to disk: Restore. (line 103)
* -cp_rx copies file trees to disk <1>: Restore. (line 111)
* -cut_out inserts piece of data file: Insert. (line 118)
* -data_cache_size adjusts read cache size: Loading. (line 328)
* -data_cache_size adjusts read cache size: Loading. (line 332)
* -dev acquires one drive for input and output: AqDrive. (line 12)
* -devices gets list of drives: Inquiry. (line 7)
* -device_links gets list of drives: Inquiry. (line 17)
@ -5087,7 +5095,7 @@ File: xorriso.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: Top
* -dusx show directory size on disk: Navigate. (line 85)
* -dux show directory size on disk: Navigate. (line 81)
* -dvd_obs set write block size: SetWrite. (line 314)
* -early_stdio_test classifies stdio drives: Loading. (line 316)
* -early_stdio_test classifies stdio drives: Loading. (line 320)
* -ecma119_map names w/o Rock Ridge, Joliet: Loading. (line 214)
* -eject ejects drive tray: Writing. (line 50)
* -end writes pending session and ends program: Scripting. (line 151)
@ -5204,7 +5212,7 @@ File: xorriso.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: Top
(line 51)
* -rollback discards pending changes: Writing. (line 9)
* -rollback_end ends program without writing: Scripting. (line 154)
* -rom_toc_scan searches for sessions: Loading. (line 274)
* -rom_toc_scan searches for sessions: Loading. (line 278)
* -rr_reloc_dir sets name of relocation directory: SetWrite. (line 144)
* -scdbackup_tag enables scdbackup checksum tag: Emulation. (line 179)
* -scsi_log reports SCSI commands: Scripting. (line 143)
@ -5311,8 +5319,8 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Directory, delete, -rmdir: Manip. (line 29)
* disk_path, _definition: Insert. (line 6)
* Drive, accessability, -drive_class: Loading. (line 73)
* Drive, classify stdio, -early_stdio_test: Loading. (line 316)
* Drive, demand real MMC, -ban_stdio_write: Loading. (line 312)
* Drive, classify stdio, -early_stdio_test: Loading. (line 320)
* Drive, demand real MMC, -ban_stdio_write: Loading. (line 316)
* Drive, eject tray, -eject: Writing. (line 50)
* Drive, for input and output, -dev: AqDrive. (line 12)
* Drive, for input, -indev: AqDrive. (line 23)
@ -5320,7 +5328,7 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Drive, get drive list, -devices: Inquiry. (line 7)
* Drive, get drive list, -device_links: Inquiry. (line 17)
* Drive, list supported media, -list_profiles: Writing. (line 177)
* Drive, reduce activity, -calm_drive: Loading. (line 302)
* Drive, reduce activity, -calm_drive: Loading. (line 306)
* Drive, report SCSI commands, -scsi_log: Scripting. (line 143)
* Drive, write and eject, -commit_eject: Writing. (line 53)
* Drive, _definition: Drives. (line 6)
@ -5359,7 +5367,7 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* HFS+ serial number: Bootable. (line 339)
* hidden, set in ISO image, -hide: Manip. (line 171)
* HP-PA boot sector, production: Bootable. (line 314)
* Image reading, cache size, -data_cache_size: Loading. (line 328)
* Image reading, cache size, -data_cache_size: Loading. (line 332)
* Image, demand volume ID, -assert_volid: Loading. (line 111)
* Image, discard pending changes, -rollback: Writing. (line 9)
* Image, filesystem to load, -read_fs: Loading. (line 102)
@ -5517,7 +5525,7 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* SUN SPARC boot images, activation: Bootable. (line 377)
* Symbolic link, create, -lns: Insert. (line 160)
* System area, _definition: Bootable. (line 184)
* Table-of-content, search sessions, -rom_toc_scan: Loading. (line 274)
* Table-of-content, search sessions, -rom_toc_scan: Loading. (line 278)
* Table-of-content, show, -toc: Inquiry. (line 27)
* Timestamps, set in ISO image, -alter_date: Manip. (line 136)
* Timestamps, set in ISO image, -alter_date_r: Manip. (line 168)
@ -5575,47 +5583,47 @@ Node: Commands24952
Node: ArgSort26629
Node: AqDrive28123
Node: Loading31178
Node: Insert51099
Node: SetInsert61324
Node: Manip70175
Node: CmdFind79958
Node: Filter98053
Node: Writing102675
Node: SetWrite112830
Node: Bootable135774
Node: Jigdo158302
Node: Charset162561
Node: Exception165888
Node: DialogCtl172017
Node: Inquiry174619
Node: Navigate183069
Node: Verify191364
Node: Restore201241
Node: Emulation209854
Node: Scripting220264
Node: Frontend228046
Node: Examples237681
Node: ExDevices238859
Node: ExCreate239520
Node: ExDialog240820
Node: ExGrowing242091
Node: ExModifying242900
Node: ExBootable243410
Node: ExCharset243965
Node: ExPseudo244861
Node: ExCdrecord245788
Node: ExMkisofs246108
Node: ExGrowisofs247465
Node: ExException248619
Node: ExTime249077
Node: ExIncBackup249535
Node: ExRestore253561
Node: ExRecovery254507
Node: Files255079
Node: Seealso256413
Node: Bugreport257128
Node: Legal257719
Node: CommandIdx258731
Node: ConceptIdx275773
Node: Insert51283
Node: SetInsert61508
Node: Manip70359
Node: CmdFind80142
Node: Filter98445
Node: Writing103067
Node: SetWrite113222
Node: Bootable136166
Node: Jigdo158694
Node: Charset162953
Node: Exception166280
Node: DialogCtl172409
Node: Inquiry175011
Node: Navigate183461
Node: Verify191756
Node: Restore201633
Node: Emulation210246
Node: Scripting220656
Node: Frontend228438
Node: Examples238073
Node: ExDevices239251
Node: ExCreate239912
Node: ExDialog241212
Node: ExGrowing242483
Node: ExModifying243292
Node: ExBootable243802
Node: ExCharset244357
Node: ExPseudo245253
Node: ExCdrecord246180
Node: ExMkisofs246500
Node: ExGrowisofs247857
Node: ExException249011
Node: ExTime249469
Node: ExIncBackup249927
Node: ExRestore253953
Node: ExRecovery254899
Node: Files255471
Node: Seealso256805
Node: Bugreport257520
Node: Legal258111
Node: CommandIdx259123
Node: ConceptIdx276165

End Tag Table