From: Franck Jullien <franck.jullien@gmail.com>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] [v2] filetype: Improve FAT detection
Date: Mon, 17 Sep 2012 08:08:45 +0200 [thread overview]
Message-ID: <CAJfOKBwfT5DiCbjUDRu1R9x07rJtN=8NWJ-c7vQP6EnqCXGdaw@mail.gmail.com> (raw)
In-Reply-To: <20120917054904.GP25990@game.jcrosoft.org>
2012/9/17 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
> On 22:33 Sun 16 Sep , Franck Jullien wrote:
>> We may have some disk with MBR as a first sector. In this case, the
>> current FAT check returns an error. However, the FAT sector exist and
>> the MBR can tell us where it is.
>>
>> This patch add to file_name_detect_type function the ability to find
>> the FAT boot sector on the first sector of the first partition in case
>> it is not on sector 0.
>>
>> It also introduce is_fat_boot_sector to check if a buffer is a FAT boot
>> sector.
> can you try
>
> mount /dev/disk0.0 /mnt
>
> does this work?
>
> Best Regards,
> J.
Yes it works. However, I don't have partitions, I use mount /dev/disk0 /mnt.
I tested with MBR and FAT as first sector (two different cards) and
with/without -t fat option.
Franck.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-09-17 6:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-16 20:33 Franck Jullien
2012-09-16 20:33 ` [PATCH 2/2] fs/fat: Handle MBR on the first sector Franck Jullien
2012-09-17 5:49 ` [PATCH 1/2] [v2] filetype: Improve FAT detection Jean-Christophe PLAGNIOL-VILLARD
2012-09-17 6:08 ` Franck Jullien [this message]
2012-09-18 8:38 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJfOKBwfT5DiCbjUDRu1R9x07rJtN=8NWJ-c7vQP6EnqCXGdaw@mail.gmail.com' \
--to=franck.jullien@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=plagnioj@jcrosoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox