because xfs_repair uses the correct stripe unit value.
- Fix a bug in xfs_logprint, when dumping a corrupt log.
- FreeBSD updates from Alexander Kabaev.
- - Sector size updates for mkfs (disabled at the moment).
+ - Large sector size updates for mkfs (disabled at the moment).
+ - Large sector size fixes for xfs_repair.
- Sync up with aeb's mount source for filesystem detection.
xfsprogs-2.4.9 (03 May 2003)
/* Allocate and initialize the per-ag data */
size = sbp->sb_agcount * sizeof(xfs_perag_t);
- if ((mp->m_perag = calloc(size, 1)) == NULL) {
+ if (size && (mp->m_perag = calloc(size, 1)) == NULL) {
fprintf(stderr, _("%s: failed to alloc %ld bytes: %s\n"),
progname, (long)size, strerror(errno));
exit(1);
* found one. now verify it by looking
* for other secondaries.
*/
- bcopy(&bufsb, rsb, bufsb.sb_sectsize);
+ bcopy(&bufsb, rsb, sizeof(xfs_sb_t));
rsb->sb_inprogress = 0;
clear_sunit = 1;