Bug 162378 - file won't recognize Reiserfs due to 64 kbyte check limit
file won't recognize Reiserfs due to 64 kbyte check limit
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: file (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-03 09:11 EDT by István Tóth
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.13-5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-04 01:40:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
This patch makes file chek the first 128kbytes of the file (1.36 KB, patch)
2005-07-03 09:14 EDT, István Tóth
no flags Details | Diff

  None (edit)
Description István Tóth 2005-07-03 09:11:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
The file command does not recognize ReiserFS filesystems.

Version-Release number of selected component (if applicable):
file-4.13-4

How reproducible:
Always

Steps to Reproduce:
1.mkfs.reiser /dev/VG1/lvol3
2.issue file -Ls /dev/VG1/lvol3
3.
  

Actual Results:  file identifies the volume as "Data"

Expected Results:  File should have been identified as "Filesystem ReiserFS"

Additional info:

It's caused by the fact that the ReiserFS magic string is not in the first 64kbyte of the volume, and file only reads the first 64k of the volume.
Comment 1 István Tóth 2005-07-03 09:14:18 EDT
Created attachment 116309 [details]
This patch makes file chek the first 128kbytes of the file

The attached patch fixes the problem.
Comment 2 Radek Vokal 2005-07-04 01:40:36 EDT
Thanks, patch applied on rawhide. 

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