}
# endif
- DBG(LOWPROBE, ul_debug("ready for low-probing, offset=%"PRIu64", size=%"PRIu64"",
- pr->off, pr->size));
+ DBG(LOWPROBE, ul_debug("ready for low-probing, offset=%"PRIu64", size=%"PRIu64", zonesize=%"PRIu64,
+ pr->off, pr->size, pr->zone_size));
DBG(LOWPROBE, ul_debug("whole-disk: %s, regfile: %s",
blkid_probe_is_wholedisk(pr) ?"YES" : "NO",
S_ISREG(pr->mode) ? "YES" : "NO"));
#include <stdint.h>
#include <stdbool.h>
#include <assert.h>
+#include <inttypes.h>
#ifdef HAVE_LINUX_BLKZONED_H
#include <linux/blkzoned.h>
blkid_probe_get_buffer(pr, bytenr, BTRFS_SUPER_INFO_SIZE);
if (!super[i])
return -EIO;
+ DBG(LOWPROBE, ul_debug("(btrfs) checking #%d zone "
+ "[start=%" PRIu64", len=%" PRIu64", sb-offset=%" PRIu64"]",
+ i, (uint64_t) zones[i].start,
+ (uint64_t) zones[i].len, bytenr));
}
if (super[0]->generation > super[1]->generation)
return -EUCLEAN;
}
*wp_ret = sector << SECTOR_SHIFT;
+
+ DBG(LOWPROBE, ul_debug("(btrfs) write pointer: %" PRIu64" sector", sector));
return 0;
}
*/
for (i = 0; i < BTRFS_NR_SB_LOG_ZONES; i++) {
if (zones[i].type == BLK_ZONE_TYPE_CONVENTIONAL) {
+ DBG(LOWPROBE, ul_debug("(btrfs) checking conventional zone"));
*bytenr_ret = zones[i].start << SECTOR_SHIFT;
ret = 0;
goto out;