-xfsprogs (2.6.16-1) unstable; urgency=low
+xfsprogs (2.6.17-1) unstable; urgency=low
* New upstream release.
- -- Nathan Scott <nathans@debian.org> Thu, 17 Jun 2004 15:16:25 +1000
+ -- Nathan Scott <nathans@debian.org> Wed, 23 Jun 2004 15:05:51 +1000
xfsprogs (2.6.15-1) unstable; urgency=low
+xfsprogs-2.6.17 (23 June 2004)
+ - Fix use of isset macro, getting realtime devices to
+ function correctly in xfs_db and xfs_repair.
+ - Fix initialisation of realtime devices in libxfs.
+
xfsprogs-2.6.16 (17 June 2004)
- Add sendfile command into xfs_io(8) to exercise that
functionality.
*/
static int
rtmount_init(
- xfs_mount_t *mp) /* file system mount structure */
+ xfs_mount_t *mp, /* file system mount structure */
+ int flags)
{
xfs_buf_t *bp; /* buffer for last block of subvolume */
xfs_daddr_t d; /* address of last block of subvolume */
sbp = &mp->m_sb;
if (sbp->sb_rblocks == 0)
return 0;
- if (mp->m_rtdev == 0) {
+ if (mp->m_rtdev == 0 && !(flags & LIBXFS_MOUNT_DEBUGGER)) {
fprintf(stderr, _("%s: filesystem has a realtime subvolume\n"),
progname);
return -1;
sbp->sb_rbmblocks;
mp->m_rsumsize = roundup(mp->m_rsumsize, sbp->sb_blocksize);
mp->m_rbmip = mp->m_rsumip = NULL;
+
+ /*
+ * Allow debugger to be run without the realtime device present.
+ */
+ if (flags & LIBXFS_MOUNT_DEBUGGER)
+ return 0;
+
/*
* Check that the realtime section is an ok size.
*/
}
/* Initialize realtime fields in the mount structure */
- if (!(flags & LIBXFS_MOUNT_DEBUGGER) && rtmount_init(mp)) {
+ if (rtmount_init(mp, flags)) {
fprintf(stderr, _("%s: realtime device init failed\n"),
progname);
return NULL;
}
ASSERT(mp->m_rootip != NULL);
}
- if ((flags & LIBXFS_MOUNT_ROOTINOS) &&
- !(flags & LIBXFS_MOUNT_DEBUGGER) &&
- rtmount_inodes(mp))
+ if ((flags & LIBXFS_MOUNT_ROOTINOS) && rtmount_inodes(mp))
return NULL;
return mp;
}