Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 582484 - some guestfish sub commands can not handle special files properly
some guestfish sub commands can not handle special files properly
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Richard W.M. Jones
Depends On:
Blocks: 633174
  Show dependency treegraph
Reported: 2010-04-15 02:38 EDT by Pengzhen Cao
Modified: 2011-07-14 15:10 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 633174 (view as bug list)
Last Closed: 2011-07-14 15:10:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
log for file command (25.39 KB, application/octet-stream)
2010-04-15 02:39 EDT, Pengzhen Cao
no flags Details
log for touch command (2.61 KB, application/octet-stream)
2010-04-15 02:40 EDT, Pengzhen Cao
no flags Details

  None (edit)
Description Pengzhen Cao 2010-04-15 02:38:26 EDT
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):
And also the lastest git version

How reproducible:

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:
Comment 1 Pengzhen Cao 2010-04-15 02:39:34 EDT
Created attachment 406688 [details]
log for file command
Comment 2 Pengzhen Cao 2010-04-15 02:40:03 EDT
Created attachment 406689 [details]
log for touch command
Comment 3 Richard W.M. Jones 2010-04-15 04:24:22 EDT
I'll have a look at this when I get back from holiday.
Comment 4 Richard W.M. Jones 2010-06-04 10:37:55 EDT
Patches posted upstream to fix the issues with
the touch and file commands.

Comment 5 Richard W.M. Jones 2010-06-08 09:32:57 EDT
This commit:


breaks OS detection, since /dev/VG/LV is a symbolic link to

Reopening this bug.
Comment 6 Richard W.M. Jones 2010-06-08 11:08:02 EDT
Second patch posted:


Note You need to log in before you can comment on or make changes to this bug.