bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reiser4 filesystem detection


From: B.Hakvoort
Subject: Re: reiser4 filesystem detection
Date: Wed, 29 Dec 2004 15:57:39 +0100

Hi Andrew,

Thanks for your answer, I decided to stick with a simple check if sector
128 contains the string "ReIsEr4". It seems there's also some info in
sectors 136,144 and 168, but i wasn't sure how to extract that info.

So for the moment i either return NULL or a simple
ped_geometry_duplicate( geom ) . 
If you think this isn't sufficient i can look into more detailed checks,
just let me know. (of course i've performed some tests and it seems to
work just fine)

Attached to this mail is the new fs_reiser4 directory and a patch to
modify libparted.c

Of course this new dir should also be added to some buildfiles, but i
figured you don't need a patch for that :)
I guess the following files need to be modified:

- libparted/Makefile.am
- configure.ac

regards,

Bart

On Wed, 2004-12-29 at 08:59 +1100, Andrew Clausen wrote:
> Hi Bart,
> 
> On Tue, Dec 28, 2004 at 04:57:05PM +0100, B.Hakvoort wrote:
> > Why do the specific probefunctions (e.g. ntfs_probe in fs_ntfs/ntfs.c)
> > return a PedGeometry? I've skimmed through the probe-sections in
> > filesys.c and figured it has something to do with the heuristics, but i
> > can't see why a simple boolean wouldn't suffice. 'true' if geom contains
> > fs signature, 'false' if not.
> > Or maybe an integer to assign 'scores' to a filesystem...
> 
> The PedGeometry returned is the detected file system start/end.
> This is useful for:
>  * trying to find "lost" partitions.  (i.e. the rescue command)
>  * if there are two different file system signatures on the same place,
> then the file system that matches the partition closer is more likely
> to be the "real" file system.
> 
> Cheers,
> Andrew

-- 
www.titanium-it.nl --- Open Minded Open Source
www.heavenisopen.com <-----Another Source

Attachment: reiser4.tar.bz2
Description: application/bzip-compressed-tar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]