URL:
<http://savannah.gnu.org/support/?107968>
Summary: search does not return the partition name when a
looked for file is inside an isofile
Project: Savannah Administration
Submitted by: arbiel
Submitted on: lun. 27 févr. 2012 12:12:40 CET
Category: None
Priority: 5 - Normal
Severity: 3 - Normal
Status: None
Assigned to: None
Originator Email:
Operating System: GNU/Linux
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
A given file may be on an iso_file or somewhere else as a regular file. So I
wrote
loopback iso /path/to/iso_file/iso.file.name
search --set=device --file --no-floppy /path/to/looked.for.file
When the file resides inside the isofile, the result is (iso) and not
(iso,msdos1)
To circumvent this erroneous behavior, I only execute the search command after
having tested for the existence of the looked for file inside the isofile
if ! [ -e (iso,msdos1)/path/to/looked.for.file ]; then search ; else set
device="iso,msdos1"; fi
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?107968>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/