int level,
xfs_agf_t *agf))
{
+ xfs_agnumber_t seqno = INT_GET(agf->agf_seqno, ARCH_CONVERT);
+
push_cur();
- set_cur(&typtab[typ],
- XFS_AGB_TO_DADDR(mp, INT_GET(agf->agf_seqno, ARCH_CONVERT), root),
+ set_cur(&typtab[typ], XFS_AGB_TO_DADDR(mp, seqno, root),
blkbb, DB_RING_IGN, NULL);
+ if (iocur_top->data == NULL) {
+ dbprintf("can't read btree block %u/%u\n", seqno, root);
+ return;
+ }
(*func)((xfs_btree_sblock_t *)iocur_top->data, typ, nlevels - 1, agf);
pop_cur();
}
+xfsprogs-current
+ - enable preallocation in xfs_mkfile [missed during port?]
+ - fix xfs_db core dump when reporting freespace
+
xfsprogs-1.3.6 (31 August 2001)
- make mkfs.xfs aware of geometries that might cause
inode numbers to exceed 32 significant bits.
flck.l_whence = SEEK_SET;
flck.l_start = 0LL;
flck.l_len = size;
-#if 0
- (void)ioctl(fd, XFS_IOC_RESVSP64, &flck);
-
- if (prealloc) {
- if ( close(fd) < 0 ) {
- perror(argv[optind]);
- unlink(argv[optind]);
- errs++;
- }
-
- optind++;
-
- continue;
- }
-#endif
+ if (prealloc)
+ (void)ioctl(fd, XFS_IOC_RESVSP64, &flck);
if (oflags & O_DIRECT) {
nbufalign = da.d_mem;