xfs
[Top] [All Lists]

Re: BLKGETSIZE64, BLKBSZSET, BLKSSZGET definition in xfsprogs.

To: Jan Derfinak <ja@xxxxxxxxxxxx>
Subject: Re: BLKGETSIZE64, BLKBSZSET, BLKSSZGET definition in xfsprogs.
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 10 Oct 2003 08:28:47 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.53.0310091024330.1331@alienAngel.home.sk>
References: <20031006055957.GC1001@frodo> <Pine.LNX.4.53.0310071107220.1331@alienAngel.home.sk> <3F82C06A.1020808@backtobasicsmgmt.com> <Pine.LNX.4.53.0310071542510.1331@alienAngel.home.sk> <3F82CFFB.2000209@backtobasicsmgmt.com> <Pine.LNX.4.53.0310072003480.1331@alienAngel.home.sk> <3F8382D3.5050703@backtobasicsmgmt.com> <Pine.LNX.4.53.0310081227010.1331@alienAngel.home.sk> <20031008235216.GA813@frodo> <Pine.LNX.4.53.0310091024330.1331@alienAngel.home.sk>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Thu, Oct 09, 2003 at 10:43:19AM +0200, Jan Derfinak wrote:
> On Thu, 9 Oct 2003, Nathan Scott wrote:
> 
> Hi.
> 
> > If it doesn't compile, please send a patch (and the compile error).
> 
> Of course.
> 
> To trigger error you must have includes from kernel 2.6.0-test5 or higher.

Thanks Jan, I'll put this change in shortly.

cheers.

> The error:
> /usr/bin/libtool --mode=compile gcc -O1 -g -DNDEBUG -funsigned-char -Wall
> -I../include -DVERSION=\"2.5.10\" -DLOCALEDIR=\"/usr/local/share/locale\"
> -DPACKAGE=\"xfsprogs\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I.
> -D_REENTRANT -fno-strict-aliasing -c linux.c
> rm -f .libs/linux.lo
> gcc -O1 -g -DNDEBUG -funsigned-char -Wall -I../include -DVERSION=\"2.5.10\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE=\"xfsprogs\" -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -I. -D_REENTRANT -fno-strict-aliasing -c linux.c
> -fPIC -DPIC -o .libs/linux.lo
> linux.c: In function `platform_set_blocksize':
> linux.c:116: parse error before '[' token
> linux.c: In function `platform_findsizes':
> linux.c:148: parse error before '[' token
> make[1]: *** [linux.lo] Error 1
> make: *** [default] Error 2
> 
> The patch: (from /usr/include/linux/fs.h)
> diff -uNr xfsprogs.orig/libxfs/linux.c xfsprogs/libxfs/linux.c
> --- xfsprogs.orig/libxfs/linux.c      2003-06-11 13:49:17.000000000 +0200
> +++ xfsprogs/libxfs/linux.c   2003-10-09 10:30:12.000000000 +0200
> @@ -42,10 +42,10 @@
>  extern char *progname;
> 
>  #ifndef BLKGETSIZE64
> -# define BLKGETSIZE64        _IOR(0x12,114,sizeof(__uint64_t))
> +# define BLKGETSIZE64        _IOR(0x12,114,size_t)
>  #endif
>  #ifndef BLKBSZSET
> -# define BLKBSZSET   _IOW(0x12,113,sizeof(int))
> +# define BLKBSZSET   _IOW(0x12,113,size_t)
>  #endif
>  #ifndef BLKSSZGET
>  # define BLKSSZGET   _IO(0x12,104)
> 
> 
>                               jan
> 
> -- 

-- 
Nathan


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