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

List:       busybox
Subject:    Re: Applet for detecting the filesystem type.
From:       Sameer Naik <sameer.subscriptions () damagehead ! com>
Date:       2010-11-28 9:53:30
Message-ID: AANLkTi=oqzBR0MZve8SiP5nR49g+R0DbrVfK9gG2HKqx () mail ! gmail ! com
[Download RAW message or body]

Hi,

For now, i am doing just as you said. i.e. first try mounting with the
iochaset option and then if it fails try mounting again without the
iocharset option. Other than the message "EXT3-fs: Unrecognized mount
option "iocharset=iso8859-1" or missing value" being printed, it works
well.

Thanks for the help

Regards
~Sameer

On Thu, Nov 25, 2010 at 10:34 AM, Sergey Naumov <sknaumov@gmail.com> wrote:
>> The main reason why i need to detect the partition type before
>> mounting is so that i can specify the "iocharset" mount option to the
>> mount command. If i do not specify the charset, unicode characters do
>> no work and iconv() calls in applications as well start reporting
>> errors during the conversion.
>>
>> This issue shows up mainly for fat32 and ntfs partitions and i have to
>> specify "iocharset=iso8859-1,utf8" at the time of mounting fat32 and
>> ntfs partitions.
>
> The ugly way is to provide iocharset option to all mount commands. If
> this option cannot be applied to the current fs and exit status of
> mount is not zero, then try again, but now without iocharset option.
>
> Sergey Naumov.
>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

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