From: Martin K. Petersen Date: Thu, 8 Mar 2001 03:29:45 +0000 (+0000) Subject: Replaced BLKSETSIZE with BLKBSZSET. X-Git-Tag: v1.2.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2075b82aa85ed676b9e739140f08f79b74fd32bb;p=thirdparty%2Fxfsprogs-dev.git Replaced BLKSETSIZE with BLKBSZSET. --- diff --git a/libxfs/init.c b/libxfs/init.c index e3142dd47..b40bf31a7 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -41,8 +41,8 @@ #include #include -#ifndef BLKSETSIZE /* Baaad m'kay, but it's not in libc yet */ -#define BLKSETSIZE _IO(0x12,108) /* set device block size */ +#ifndef BLKBSZSET +#define BLKBSZSET _IO(0x12,108) /* set device block size */ #endif #define findrawpath(x) x @@ -203,7 +203,7 @@ libxfs_device_open(char *path, int creat, int readonly) /* Set device blocksize to 512 bytes */ if ((statb.st_mode & S_IFMT) == S_IFBLK) { - if (ioctl(fd, BLKSETSIZE, &blocksize) < 0) { + if (ioctl(fd, BLKBSZSET, &blocksize) < 0) { fprintf(stderr, "%s: warning - cannot set blocksize on " "block device %s: %s\n", progname, path, strerror(errno));