ia64/xen-unstable

diff tools/blktap2/vhd/lib/vhd-util-repair.c @ 19817:b7f73a7f3078

blktap2: portability fixes for NetBSD

- Use standard off_t and lseek() instead of non-portable off64_t and
lseek64()
- Use uuid API as documented in DCE 1.1 RPC specification
- Add NetBSD implementation for blk_getimagesize() and
blk_getsectorsize()
- Use blk_getimagesize() and blk_getsectorsize()
- Fix uuid header check

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 17:24:14 2009 +0100 (2009-06-23)
parents 1c627434605e
children
line diff
     1.1 --- a/tools/blktap2/vhd/lib/vhd-util-repair.c	Tue Jun 23 11:27:54 2009 +0100
     1.2 +++ b/tools/blktap2/vhd/lib/vhd-util-repair.c	Tue Jun 23 17:24:14 2009 +0100
     1.3 @@ -37,7 +37,7 @@ vhd_util_repair(int argc, char **argv)
     1.4  {
     1.5  	char *name;
     1.6  	int err, c;
     1.7 -	off64_t eof;
     1.8 +	off_t eof;
     1.9  	vhd_context_t vhd;
    1.10  
    1.11  	name = NULL;