xfs
[Top] [All Lists]

Re: migout (sample_hsm) dumped core

To: linux-xfs@xxxxxxxxxxx
Subject: Re: migout (sample_hsm) dumped core
From: Takayuki Sasaki <sasaki@xxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Sep 2001 19:17:32 +0900
In-reply-to: Your message of Fri, 28 Sep 2001 18:38:23 +0900. <200109280938.SAA22075@tagajo.bsd.tnes.nec.co.jp>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi,

migout did not dumped core. It returned an error EBADF.
Sorry for the wrong information.

Takayuki

> Hi there,
> 
> While testing XFS dmapi functions with a CVS kernel which is
> compiled several weeks ago,
> linux-2.4-xfs/cmd/xfstests/dmapi/src/sample_hsm/migout dumped
> core, so I made a patch as follows:
> 
> --- migout.c  2001/03/07 22:43:23     1.2
> +++ migout.c  2001/09/28 09:25:55
> @@ -469,6 +469,7 @@
>       char    *cp, *start;
>       size_t   len;
>       char *hanp;
> +     char *hanpp=NULL;
>  
>       /*
>        * Skip any leading white space, and check the length
> @@ -505,8 +506,8 @@
>       cp += len*2;
>       *cp = '\0';
>  
> -     atohan( hanp, (void**)&handle_buf, &len );
> -
> +     atohan( hanp, (void**)&hanpp, &len );
> +     memcpy( handle_buf, hanpp, len);
>  
>       /* skip over white space */
>       while (!isalnum(*cp))
> 
> 
> 
> It works for me, but could anybody on the list check this patch?
> 
> Cheers,
> 
> Takayuki


<Prev in Thread] Current Thread [Next in Thread>