Merge of master-melb:xfs-cmds:24460a by kenmcd.
#
PKG_MAJOR=2
PKG_MINOR=7
-PKG_REVISION=6
+PKG_REVISION=7
PKG_BUILD=1
-xfsprogs (2.7.6-1) unstable; urgency=low
+xfsprogs (2.7.7-1) unstable; urgency=low
* New upstream release.
* Add support for (optional) ATTR2 format extension (closes: #336350)
* Allow gcc -pedantic option for C++ <xfs.h> users (closes: #249429)
* Fix segv in xfs_db frag command (closes: #338207)
- -- Nathan Scott <nathans@debian.org> Mon, 31 Oct 2005 08:49:46 +1100
+ -- Nathan Scott <nathans@debian.org> Wed, 16 Nov 2005 16:32:35 +1100
xfsprogs (2.7.4-1) unstable; urgency=low
+xfsprogs-2.7.7 (16 November 2005)
+ - Fix some gcc compiler warnings on 64 bit platforms.
+ - Remove last reference to a <linux/*.h> (kernel) header.
+ - Updated aclocal.m4
+
xfsprogs-2.7.6 (31 October 2005)
- Add support for the inode extent size hint for the regular
data device (previously was realtime only), and allow the
#include <sys/vfs.h>
#include <sys/ioctl.h>
#include <sys/param.h>
-#include <linux/types.h>
#include <malloc.h>
#include <getopt.h>
#include <endian.h>
#include <unistd.h>
#include <sys/types.h>
+typedef unsigned char __u8;
+typedef signed char __s8;
+typedef unsigned short __u16;
+typedef signed short __s16;
+typedef unsigned int __u32;
+typedef signed int __s32;
+typedef unsigned long long int __u64;
+typedef signed long long int __s64;
+
+typedef __u16 __be16;
+typedef __u32 __be32;
+typedef __u64 __be64;
#if defined(__linux__)
#include <xfs/linux.h>
#include <xfs/freebsd.h>
#elif defined(__APPLE__)
#include <xfs/darwin.h>
-#elif defined(__sgi__) || defined(___sgi)
+#elif defined(__sgi__) || defined(__sgi)
#include <xfs/irix.h>
#else
# error unknown platform... have fun porting!
#endif
-
/* long and pointer must be either 32 bit or 64 bit */
#undef HAVE_32BIT_LONG
#undef HAVE_64BIT_LONG
#ifndef __user
#define __user
#endif
-typedef __u16 __be16;
-typedef __u32 __be32;
-typedef __u64 __be64;
#define IRIX_DEV_BITSMAJOR 14
#define IRIX_DEV_BITSMINOR 18
int count;
int nent;
int i;
- __uint64_t last = 0;
+ __u64 last = 0;
xfs_inogrp_t *t;
xfs_fsop_bulkreq_t bulkreq;
char *mntpt, int fsfd, jdm_fshandle_t *fshandlep)
{
int error;
- int buflenout;
- ino64_t lastino = 0;
+ __s32 buflenout;
+ __u64 lastino = 0;
xfs_bstat_t *p;
xfs_bstat_t *endp;
xfs_fsop_bulkreq_t bulkreq;
off64_t offset;
unsigned int zeed = 0;
long long count, total, tmp;
- unsigned int fsblocksize, fssectsize;
+ size_t fsblocksize, fssectsize;
struct timeval t1, t2;
char s1[64], s2[64], ts[64];
char *sp;
off64_t offset, skip = 0;
long long count, total, tmp;
unsigned int zeed = 0, seed = 0xcdcdcdcd;
- unsigned int fsblocksize, fssectsize;
+ size_t fsblocksize, fssectsize;
struct timeval t1, t2;
char s1[64], s2[64], ts[64];
char *sp, *infile = NULL;
ep = xfs_bmap_do_search_extents(base, lastx, nextents, bno, eofp,
lastxp, gotp, prevp);
- rt = ip->i_d.di_flags & XFS_DIFLAG_REALTIME;
- if(!rt && !gotp->br_startblock && (*lastxp != NULLEXTNUM)) {
+ rt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(ip);
+ if (unlikely(!rt && !gotp->br_startblock && (*lastxp != NULLEXTNUM))) {
cmn_err(CE_PANIC,"Access to block zero: fs: <%s> inode: %lld "
"start_block : %llx start_off : %llx blkcnt : %llx "
"extent-state : %x \n",
- (ip->i_mount)->m_fsname,(long long)ip->i_ino,
- gotp->br_startblock, gotp->br_startoff,
- gotp->br_blockcount,gotp->br_state);
+ (ip->i_mount)->m_fsname, (long long)ip->i_ino,
+ (unsigned long long)gotp->br_startblock,
+ (unsigned long long)gotp->br_startoff,
+ (unsigned long long)gotp->br_blockcount,
+ gotp->br_state);
}
return ep;
}
{
xfs_fsop_bulkreq_t bulkreq;
xfs_bstat_t *buf;
- __uint64_t last = 0;
- __int32_t count;
+ __u64 last = 0;
+ __s32 count;
int i, sts, fsfd;
du_t **dp;