aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/util.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-08 17:54:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-08 17:54:47 +0000
commit7039a66b58706457c7423de60556e04545432943 (patch)
treea512daebc3674c819766664c8ea17d41ef7fef02 /e2fsprogs/util.c
parent1385899416a4396385ad421ae1f532be7103738a (diff)
downloadbusybox-w32-7039a66b58706457c7423de60556e04545432943.tar.gz
busybox-w32-7039a66b58706457c7423de60556e04545432943.tar.bz2
busybox-w32-7039a66b58706457c7423de60556e04545432943.zip
correct largefile support, add comments about it.
Diffstat (limited to 'e2fsprogs/util.c')
-rw-r--r--e2fsprogs/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c
index aaee50ae6..e68c457e7 100644
--- a/e2fsprogs/util.c
+++ b/e2fsprogs/util.c
@@ -33,12 +33,12 @@ void proceed_question(void)
33void check_plausibility(const char *device, int force) 33void check_plausibility(const char *device, int force)
34{ 34{
35 int val; 35 int val;
36 STRUCT_STAT s; 36 struct stat s;
37 val = STAT(device, &s); 37 val = stat(device, &s);
38 if (force) 38 if (force)
39 return; 39 return;
40 if(val == -1) 40 if(val == -1)
41 bb_perror_msg_and_die("Could not stat %s", device); 41 bb_perror_msg_and_die("cannot stat %s", device);
42 if (!S_ISBLK(s.st_mode)) { 42 if (!S_ISBLK(s.st_mode)) {
43 printf("%s is not a block special device.\n", device); 43 printf("%s is not a block special device.\n", device);
44 proceed_question(); 44 proceed_question();