[OpenBIOS] r448 - openbios-devel/modules

hy chychen.chen at msa.hinet.net
Fri Feb 6 12:17:01 CET 2009


Dear laurent:

   Hi, my name is HY Chen, lived in Taiwan and my job is BIOS programmer.

   Nice to meet you.

Regards,
hy.hy.chen at msa.hinet.net

----- Original Message ----- 
From: <svn at openbios.org>
To: <openbios at lists.openbios.org>
Sent: Friday, February 06, 2009 5:37 AM
Subject: [OpenBIOS] r448 - openbios-devel/modules


> Author: laurent
> Date: 2009-02-05 22:37:26 +0100 (Thu, 05 Feb 2009)
> New Revision: 448
> 
> Modified:
>   openbios-devel/modules/disk-label.c
> Log:
> Set disk-label information when no partition map is used
> 
> Modified: openbios-devel/modules/disk-label.c
> ===================================================================
> --- openbios-devel/modules/disk-label.c 2009-02-05 21:33:23 UTC (rev 447)
> +++ openbios-devel/modules/disk-label.c 2009-02-05 21:37:26 UTC (rev 448)
> @@ -52,6 +52,7 @@
>  char block0[512];
>  phandle_t ph;
>  int fd, success=0;
> + xt_t xt;
> 
>  parstr = my_args_copy();
>  /* printk("dlabel-open '%s'\n", parstr ); */
> @@ -81,11 +82,23 @@
> 
>         /* try to see if there is a filesystem without partition */
> 
> -        if (atol(parstr) == 0 || atol(parstr) == 1) {
> +        if (atol(parstr) == 1) {
>  PUSH_ih( my_self() );
>  selfword("find-filesystem");
>  ph = POP_ph();
>  if( ph ) {
> + di->offs_hi = 0;
> + di->offs_lo = 0;
> + di->size_hi = -1;
> + di->size_lo = -1;
> + di->part_ih = 0;
> + di->type = -1;
> + di->block_size = 512;
> + xt = find_parent_method("block-size");
> + if (xt) {
> + call_parent(xt);
> + di->block_size = POP();
> + }
>  push_str( filename );
>  PUSH_ph( ph );
>  fword("interpose");
> @@ -104,7 +117,6 @@
> 
>  /* open partition package */
>  if( ph ) {
> - xt_t xt;
>  if( !(di->part_ih=open_package(parstr, ph)) )
>  goto out;
>  if( !(xt=find_ih_method("get-info", di->part_ih)) )
> 
> 
> --
> OpenBIOS                 http://openbios.org/
> Mailinglist:  http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you



More information about the OpenBIOS mailing list