From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Tue, 07 Mar 2006 17:01:17 +0000 Subject: Re: Libvolume incorrectly detects FAT32 Message-Id: <20060307180117.10f4942e@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 Mon, 6 Mar 2006 23:37:20 +0100 Kay Sievers wrote: > On Mon, Mar 06, 2006 at 10:59:31PM +0100, Michael Buesch wrote: > > Yes, I fear users of stupid digicams may get hit by this. > > The Formating option on cheap digicams may sometimes be buggy implemented. > > I think you should instead do a > > dd if=/dev/zero of=/dev/partition bsQ2 count=1 > > and reformat your partition. > > Yes, just use a sane formatting program like everything which is > libparted based. The usual Linux commandline formatters are horribly > broken and I gave up to talk to the ignorant maintainers. Just zero-out > the device at the beginning _and_ the end of the device if you reformat it > with a new filesystem type. Or use a libparted or similar based program. > > Thanks, > Kay I would have another suggestion then; how about a scoring system? Probes would be given OPTIONAL scoring system, let's say in percents, eg. in case of fat, lack of magic would make it lose 20%; some other filesystem would return just 0 or 100% hit (ie. just like it is now). Then the probe with greatest score wins. I understand this design is for working with semibroken partitions, and I fear it won't be welcome warmly; but I still got to propose it:) I am willing to code it, I've written about ten probes for my own detection system until I noticed libvolumeid, but I want approval of design first. Thanks in advance -- 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