From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Wed, 08 Mar 2006 05:57:57 +0000 Subject: Re: Libvolume incorrectly detects FAT32 Message-Id: <20060308065757.7c76ae66@silver> List-Id: References: <20060306215704.35f12840@silver> In-Reply-To: <20060306215704.35f12840@silver> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, 7 Mar 2006 22:47:25 +0100 Michael Buesch wrote: > 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. I've never suggested to hack the kernel code; I suggested to hack the pseudoscoring system (or the strict / lax approach) into the libvolume_id included in udev, which is userspace. -- -- iSteve ------------------------------------------------------- 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&kid0944&bid$1720&dat1642 _______________________________________________ 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