[PATCH 2/8] dosfs: Fix msdos_format()

Gedare Bloom gedare at rtems.org
Thu Nov 29 17:02:26 UTC 2012


On Thu, Nov 29, 2012 at 9:32 AM, Ralf Kirchner <
ralf.kirchner at embedded-brains.de> wrote:

> For FAT32 msdos_format() used to initialize first FAT entries to
> non-zero values only if a volume label was given.  Absense of these
>
Typo: Absence

> entries made mounting such a FAT32 volume fail.
> ---
>  cpukit/libfs/src/dosfs/msdos_format.c |    2 +-
>  1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
>
> diff --git a/cpukit/libfs/src/dosfs/msdos_format.c
> b/cpukit/libfs/src/dosfs/msdos_format.c
> index 305cec9..974c00d 100644
> --- a/cpukit/libfs/src/dosfs/msdos_format.c
> +++ b/cpukit/libfs/src/dosfs/msdos_format.c
> @@ -1063,7 +1063,7 @@ int msdos_format
>     * write FAT entry 1 as EOC
>     * allocate directory in a FAT32 FS
>     */
> -  if ((ret_val == 0) && fmt_params.VolLabel_present){
> +  if (ret_val == 0){
>
While you're at it, please add a space between ) and {


>      /*
>       * empty sector: all clusters are free/do not link further on
>       */
> --
> 1.7.10.4
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20121129/04fd2665/attachment-0001.html>


More information about the devel mailing list