[parted-devel] bfs.c weirdness

Otavio Salvador otavio at debian.org
Sat Jun 30 21:20:51 UTC 2007


"Debarshi 'Rishi' Ray" <debarshi.ray at gmail.com> writes:

> I was running indent on the Parted sources, when I noticed a couple of
> issues. One of them being at ./libparted/fs/bfs/bfs.c:65
>
>  	if (!ped_geometry_read (geom, buf, 0, 1))
>  		return 0;
>
>         //if ( PED_CPU_TO_LE32((uint32_t)buf) == BFS_MAGIC )
>  		return ped_geometry_new (geom->dev, geom->start,
>                                  ped_div_round_up (
>                                          PED_CPU_TO_LE32((uint32_t)(buf+8)),
>
> Any idea what this was supposed to be?

#v+
  	if (!ped_geometry_read (geom, buf, 0, 1))
  		return 0;

	return ped_geometry_new (geom->dev, geom->start,
                             ped_div_round_up (PED_CPU_TO_LE32((uint32_t)(buf+8)),
#v-

Maybe?

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list