Description of problem: 1. guestfish "file" command can not handle character special files properly, it just hang when called againest a char special file. 2. guestfish "touch" command can not handle fifo special files properly, it also hang. These two commands can work for other special devices like block special file. Version-Release number of selected component (if applicable): libguestfs-1.0.85-1.fc12.3.x86_64 And also the lastest git version How reproducible: 100% Steps to Reproduce: 1. Run guestfish, add an img containing some char/block/fifo special files 2. Run and mount the partition 3. "file /path_to_char-dev-file" , it will hang the guestfish shell. 4. Repeat step 1,2, then run "touch /path_to_fifo-dev-file", it will hang. 5. ll,stat commands works fine for these special files Actual results: guestfish hang Expected results: command should return proper value Additional info: check logs in the attachment: guestfish-file-error01.log guestfish-touch-error02.log
Created attachment 406688 [details] log for file command
Created attachment 406689 [details] log for touch command
I'll have a look at this when I get back from holiday.
Patches posted upstream to fix the issues with the touch and file commands. https://www.redhat.com/archives/libguestfs/2010-June/msg00050.html
This commit: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=4df593496e116dfb635731c058b7627e81fc179c breaks OS detection, since /dev/VG/LV is a symbolic link to ../dm-NN. Reopening this bug.
Second patch posted: https://www.redhat.com/archives/libguestfs/2010-June/msg00068.html
Patch ACKed upstream: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=ba39ced8804765705f4c61a92db0fddb8d672c7d