[Ocfs2-tools-devel] [PATCH 1/1] o2image use statfs64 instead of statfs

Wengang Wang wen.gang.wang at oracle.com
Sat Apr 17 02:14:14 PDT 2010


Hi Srini,

For my knowledge,  we need this change?

regards,
wengang.

On 10-04-16 17:00, Srinivas Eeda wrote:
> This patch replaces statfs call with statfs64
> 
> Signed-off-by: Srinivas Eeda <srinivas.eeda at oracle.com>
> ---
>  o2image/o2image.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/o2image/o2image.c b/o2image/o2image.c
> index dae649f..52d36be 100644
> --- a/o2image/o2image.c
> +++ b/o2image/o2image.c
> @@ -500,12 +500,12 @@ static int prompt_image_creation(ocfs2_filesys *ofs, int rawflg, char *filename)
>  {
>  	int i, n;
>  	uint64_t free_spc;
> -	struct statfs stat;
> +	struct statfs64 stat;
>  	uint64_t img_size = 0;
>  	char *filepath;
>  
>  	filepath = strdup(filename);
> -	statfs(dirname(filepath), &stat);
> +	statfs64(dirname(filepath), &stat);
>  	free_spc = stat.f_bsize * stat.f_bavail;
>  
>  	n = ofs->ost->ost_bmpblks - 1;
> -- 
> 1.5.6.5
> 
> 
> _______________________________________________
> Ocfs2-tools-devel mailing list
> Ocfs2-tools-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-devel



More information about the Ocfs2-tools-devel mailing list