Bug 171732 - file command fails to recognize ext2/ext3 images
Summary: file command fails to recognize ext2/ext3 images
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: 4
Hardware: i686
OS: Linux
medium
low
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-25 17:33 UTC by Chris Eagle
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-10-26 07:50:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Eagle 2005-10-25 17:33:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616

Description of problem:


Version-Release number of selected component (if applicable):
file-4.15-fc4.1

How reproducible:
Always

Steps to Reproduce:
1. Use dd to create an image (or portion of one) of an ext2 or ext3 file system
   dd if=/dev/hda1 of=filetest count=10000
2. Use file to id the file
   file filetest
3. It should fail to id the file
  

Actual Results:  # dd if=/dev/hda1 of=filetest count=10000
10000+0 records in
10000+0 records out

# which file
/usr/bin/file

# file --version
file-4.15
magic file from /usr/share/file/magic

# file filetest
filetest: 


Expected Results:  # ./file --version
file-4.16
magic file from ./magic

# ./file filetest
filetest: Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files)

# /usr/bin/file -m ./magic filetest
filetest: Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files)

# 

Additional info:

I downloaded and built file version 4.16 and it works just fine.  Using magic built with v4.16, the FC4 installed version of file also worked fine (see expected results above).  There appears to be a problem with magic included with the current version of the file distribution.

Comment 1 Radek Vokál 2005-10-26 07:50:42 UTC
file-4.16, which fixes this issue, is already in rawhide


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