From: Eric Sandeen Date: Thu, 28 Feb 2002 23:57:48 +0000 (+0000) Subject: Warn if we fall back to BLKGETSIZE X-Git-Tag: v2.1.0~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e18c795020682c7dd4e6692235e31371ccedc8b2;p=thirdparty%2Fxfsprogs-dev.git Warn if we fall back to BLKGETSIZE --- diff --git a/libxfs/init.c b/libxfs/init.c index bf3e0a455..6b2bec3d7 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -162,6 +162,9 @@ findsize(char *path) } else { /* If BLKGETSIZE64 fails, try BLKGETSIZE */ unsigned long tmpsize; + + fprintf(stderr, "%s: warning - BLKGETSIZE64 failed, falling " + "back to BLKGETSIZE (%s)\n", progname, strerror(errno)); error = ioctl(fd, BLKGETSIZE, &tmpsize); if (error < 0) { fprintf(stderr, "%s: can't determine device size\n",