#include "xfs_scrub.h"
#include "common.h"
#include "disk.h"
+#include "platform_defs.h"
#ifndef BLKROTATIONAL
# define BLKROTATIONAL _IO(0x12, 126)
{
int iomin;
int ioopt;
+ int nproc = platform_nproc();
unsigned short rot;
int error;
interval = strtoull(p, NULL, 10);
interval &= ~((1U << disk->d_lbalog) - 1);
}
+ if (interval <= 0) {
+ interval = -1;
+ return 0;
+ }
/*
* We simulate disk errors by pretending that there are media errors at