Merge of master-melb:xfs-cmds:26062a by kenmcd.
#
PKG_MAJOR=2
PKG_MINOR=8
-PKG_REVISION=0
+PKG_REVISION=1
PKG_BUILD=1
-xfsprogs (2.8.0-1) unstable; urgency=low
+xfsprogs (2.8.1-1) unstable; urgency=low
* New upstream release.
- -- Nathan Scott <nathans@debian.org> Thu, 18 May 2006 16:27:47 +1000
+ -- Nathan Scott <nathans@debian.org> Mon, 29 May 2006 08:46:05 +1000
xfsprogs (2.7.16-1) unstable; urgency=low
+xfsprogs-2.8.1 (29 May 2006)
+ - Fix endianness issues on FreeBSD.
+
xfsprogs-2.8.0 (18 May 2006)
- Initial pass at user space caching, ultimately provides
a starting point for a faster, parallel version of repair.
/*
- * Copyright (c) 2004-2005 Silicon Graphics, Inc.
+ * Copyright (c) 2004-2006 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
#include <sys/ioctl.h>
#include <sys/mount.h>
+#include <machine/endian.h>
+#define __BYTE_ORDER BYTE_ORDER
+#define __BIG_ENDIAN BIG_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#include <xfs/swab.h>
+
#include <sys/syscall.h>
# ifndef SYS_fsctl
# define SYS_fsctl 242
struct statfs buf;
if (fstatfs(fd, &buf) < 0)
return 0;
- return (strcmp(buf.f_fstypename, "xfs") == 0);
+ return strncmp(buf.f_fstypename, "xfs", 4) == 0;
}
static __inline__ int platform_test_xfs_path(const char *path)
struct statfs buf;
if (statfs(path, &buf) < 0)
return 0;
- return (strcmp(buf.f_fstypename, "xfs") == 0);
+ return strncmp(buf.f_fstypename, "xfs", 4) == 0;
}
static __inline__ int platform_fstatfs(int fd, struct statfs *buf)
#define fdatasync fsync
#define memalign(a,sz) valloc(sz)
-#include <machine/endian.h>
-#define __BYTE_ORDER BYTE_ORDER
-#define __BIG_ENDIAN BIG_ENDIAN
-#define __LITTLE_ENDIAN LITTLE_ENDIAN
-#include <xfs/swab.h>
-
#define O_LARGEFILE 0
#ifndef O_DIRECT
#define O_DIRECT 0
/*
- * Copyright (c) 2004-2005 Silicon Graphics, Inc.
+ * Copyright (c) 2004-2006 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
#include <paths.h>
#include <uuid.h>
-#include <machine/endian.h>
+#include <sys/endian.h>
+#define __BYTE_ORDER BYTE_ORDER
+#define __BIG_ENDIAN BIG_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __swab16(x) __bswap16(x)
+#define __swab32(x) __bswap32(x)
+#define __swab64(x) __bswap64(x)
/* FreeBSD file API is 64-bit aware */
-#define fstat64 fstat
-#define ftruncate64 ftruncate
+#define fstat64 fstat
+#define ftruncate64 ftruncate
#define lseek64 lseek
-#define stat64 stat
-#define pwrite64 pwrite
-#define pread64 pread
-#define fdatasync fsync
-#define memalign(a,size) valloc(size)
+#define stat64 stat
+#define pwrite64 pwrite
+#define pread64 pread
+#define fdatasync fsync
+#define memalign(a,sz) valloc(sz)
#define constpp char * const *
#define O_LARGEFILE 0
#define HAVE_FID 1
-#define HAVE_SWABMACROS 1
-#define INT_SWAP16(type,var) ((typeof(type))(__bswap16((__u16)(var))))
-#define INT_SWAP32(type,var) ((typeof(type))(__bswap32((__u32)(var))))
-#define INT_SWAP64(type,var) ((typeof(type))(__bswap64((__u64)(var))))
static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p)
{
struct statfs buf;
if (fstatfs(fd, &buf) < 0)
return 0;
- return strcpy(buf.f_fstypename, "xfs") == 0;
+ return strncmp(buf.f_fstypename, "xfs", 4) == 0;
}
static __inline__ int platform_test_xfs_path(const char *path)
struct statfs buf;
if (statfs(path, &buf) < 0)
return 0;
- return strcpy(buf.f_fstypename, "xfs") == 0;
+ return strncmp(buf.f_fstypename, "xfs", 4) == 0;
}
static __inline__ int platform_fstatfs(int fd, struct statfs *buf)
/*
- * Copyright (c) 2000-2005 Silicon Graphics, Inc.
+ * Copyright (c) 2000-2006 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
#define __LITTLE_ENDIAN LITTLE_ENDIAN
-#define HAVE_SWABMACROS 1
-#define INT_SWAP16(type,var) (var)
-#define INT_SWAP32(type,var) (var)
-#define INT_SWAP64(type,var) (var)
+#define __swab16(x) (x)
+#define __swab32(x) (x)
+#define __swab64(x) (x)
/* Map some gcc macros for the MipsPRO compiler */
#ifndef __GNUC__
struct statvfs sbuf;
if (fstatvfs(fd, &sbuf) < 0)
return 0;
- return (strcmp(sbuf.f_basetype, "xfs") == 0);
+ return strncmp(sbuf.f_basetype, "xfs", 4) == 0;
}
static __inline__ int platform_test_xfs_path(const char *path)
struct statvfs sbuf;
if (statvfs(path, &sbuf) < 0)
return 0;
- return (strcmp(sbuf.f_basetype, "xfs") == 0);
+ return strncmp(sbuf.f_basetype, "xfs", 4) == 0;
}
static __inline__ int platform_fstatfs(int fd, struct statfs *buf)
/*
- * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
+ * Copyright (c) 2000-2002,2005-2006 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
/* generic swapping macros */
-#ifndef HAVE_SWABMACROS
#define INT_SWAP16(type,var) ((typeof(type))(__swab16((__u16)(var))))
#define INT_SWAP32(type,var) ((typeof(type))(__swab32((__u32)(var))))
#define INT_SWAP64(type,var) ((typeof(type))(__swab64((__u64)(var))))
-#endif
#define INT_SWAP(type, var) \
((sizeof(type) == 8) ? INT_SWAP64(type,var) : \
* into 32bits a four-member array is used:
*
* |24-31|16-23| 8-15| 0- 7|
- */
+ */
#define XFS_GET_DIR_INO4(di) \
(((__u32)(di).i[0] << 24) | ((di).i[1] << 16) | ((di).i[2] << 8) | ((di).i[3]))
(di).i[6] = (((from) & 0x000000000000ff00ULL) >> 8); \
(di).i[7] = ((from) & 0x00000000000000ffULL); \
} while (0)
-
+
#endif /* __XFS_ARCH_H__ */