Red Hat Bugzilla – Bug 162378
file won't recognize Reiserfs due to 64 kbyte check limit
Last modified: 2007-11-30 17:11:09 EST
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):
Steps to Reproduce:
2.issue file -Ls /dev/VG1/lvol3
Actual Results: file identifies the volume as "Data"
Expected Results: File should have been identified as "Filesystem ReiserFS"
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.
Created attachment 116309 [details]
This patch makes file chek the first 128kbytes of the file
The attached patch fixes the problem.
Thanks, patch applied on rawhide.