]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Warn if we fall back to BLKGETSIZE
authorEric Sandeen <sandeen@sgi.com>
Thu, 28 Feb 2002 23:57:48 +0000 (23:57 +0000)
committerEric Sandeen <sandeen@sgi.com>
Thu, 28 Feb 2002 23:57:48 +0000 (23:57 +0000)
libxfs/init.c

index bf3e0a4558ed3b22596511933a2da9dfbdf19719..6b2bec3d74c7603a5aaa461c5a44a57615c62e1d 100644 (file)
@@ -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",