#
PKG_MAJOR=2
PKG_MINOR=0
-PKG_REVISION=0
+PKG_REVISION=1
PKG_BUILD=0
+xfsprogs (2.0.1-1) unstable; urgency=low
+
+ * New upstream bugfix (minor) release
+
+ -- Nathan Scott <nathans@debian.org> Tue, 12 Mar 2002 13:25:32 +1100
+
xfsprogs (2.0.0-1) unstable; urgency=low
* New upstream release with support for new libhandle interfaces
-cvs
+xfsprogs-2.0.1 (12 March 2002)
- Fall back to BLKGETSIZE if BLKGETSIZE64 fails
+ - Sync user/kernel headers and shared code
xfsprogs-2.0.0 (26 February 2002)
- Major release to coincide with switch to new extended
typedef unsigned char uchar_t;
/* long and pointer must be either 32 bit or 64 bit */
-#undef HAVE_64BIT_LONG
#undef HAVE_32BIT_LONG
+#undef HAVE_64BIT_LONG
#undef HAVE_32BIT_PTR
#undef HAVE_64BIT_PTR
+#if defined(HAVE_32BIT_LONG)
+# define BITS_PER_LONG 32
+#elif defined(HAVE_64BIT_LONG)
+# define BITS_PER_LONG 64
+#else
+# error Unknown long size
+#endif
+
/* Check if __psint_t is set to something meaningful */
#undef HAVE___PSINT_T
#ifndef HAVE___PSINT_T
xfs_agino_t pagi_freecount; /* number of free inodes */
#ifdef __KERNEL__
lock_t pagb_lock; /* lock for pagb_list */
+#endif
int pagb_count; /* pagb slots in use */
xfs_perag_busy_t *pagb_list; /* unstable blocks */
-#endif
} xfs_perag_t;
#define XFS_AG_MIN_BYTES (1LL << 24) /* 16 MB */
{
void *ptr;
- if ((ptr = malloc(size)) == NULL) {
- fprintf(stderr, "%s: malloc failed (%d bytes): %s\n",
+ if ((ptr = calloc(1, size)) == NULL) {
+ fprintf(stderr, "%s: calloc failed (%d bytes): %s\n",
progname, (int)size, strerror(errno));
exit(1);
}
#ifdef MEM_DEBUG
- fprintf(stderr, "## malloc'd item %p size %d bytes\n",
+ fprintf(stderr, "## calloc'd item %p size %d bytes\n",
ptr, size);
#endif
return ptr;
#define kmem_zone_zalloc(z, f) libxfs_zone_zalloc(z)
#define kmem_zone_free(z, p) libxfs_zone_free(z, p)
#define kmem_realloc(p,sz,u,f) libxfs_realloc(p,sz)
+#define kmem_zalloc(size, f) libxfs_malloc(size)
#define kmem_alloc(size, f) libxfs_malloc(size)
#define kmem_free(p, size) libxfs_free(p)
__res; })
#include <asm/page.h>
-#define NBPP PAGE_SIZE
+#define NBPP PAGE_SIZE
static inline int atomicIncWithWrap(int *a, int b)
{
pag->pagf_levels[XFS_BTNUM_CNTi] =
INT_GET(agf->agf_levels[XFS_BTNUM_CNTi], ARCH_CONVERT);
spinlock_init(&pag->pagb_lock, "xfspagb");
+ pag->pagb_list = kmem_zalloc(XFS_PAGB_NUM_SLOTS *
+ sizeof(xfs_perag_busy_t), KM_SLEEP);
pag->pagf_init = 1;
}
#ifdef DEBUG