#include <sys/ioctl.h>
#if 0
-#include <linux/extN_fs.h>
+#include <linux/ldiskfs_fs.h>
#endif
#include <liblustre.h>
-#include <linux/lustre_lib.h>
-#include <linux/obd.h>
+#include <lustre_lib.h>
+#include <obd.h>
struct option longopts[] = {
{"ea", 0, 0, 'e'},
int main(int argc, char ** argv)
{
- long i, count, iter = LONG_MAX, mode, offset;
+ long i, c, count, iter = LONG_MAX, mode = 0, offset;
long int start, length = LONG_MAX, last, rc = 0;
char parent[4096], *t;
- char c, *prog = argv[0], *base;
+ char *prog = argv[0], *base;
int seed = 0;
int fd = -1;
strerror(errno));
break;
}
- rc = ioctl(fd, EXTN_IOC_GETEA, NULL);
+ rc = ioctl(fd, LDISKFS_IOC_GETEA, NULL);
if (rc < 0) {
printf("ioctl(%s) error: %s\n", filename,
strerror(errno));