[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-hotplug
Subject:    Re: Libvolume incorrectly detects FAT32
From:       Michael Buesch <mbuesch () freenet ! de>
Date:       2006-03-07 21:47:25
Message-ID: 200603072247.25615.mbuesch () freenet ! de
[Download RAW message or body]

On Tuesday 07 March 2006 18:32, you wrote:
> So the bottom line is, "no, this idea won't make it"? How about, then, let the
> user of the lib (ie. the app using the lib) specify whether it wants a full
> match or not?

I think you misunderstand.
The lib (app) is about properly _creating_ the partition with
all magic. So basically every formating tool should zero out
parts of the partition and _then_ write the new magic there.
Obviously some tools fail to zero out the space. This is what needs
fixing.
Pushing the problem to kernel-space, by implementing a faulty-by-design
scoring system is IMHO not the way to go.

BTW:
I often saw this problem in the past, especially with swap and fat
related partitions. So I now always use dd to zero out the first
part of a partition before I reformat it.
That's a good workaround the broken format utilities.

To summerize: I don't think there is something broken in the kernel,
so I don't think we should go and fix nonbroken code. Fix the
broken code in userspace instead.

-- 
Greetings Michael.

[Attachment #3 (application/pgp-signature)]
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic