Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/test
In directory usw-pr-cvs1:/tmp/cvs-serv18418/test
Modified Files:
ldminfo.c ldminfo.h
Log Message:
stat -> stat64
Index: ldminfo.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/test/ldminfo.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -U2 -r1.31 -r1.32
--- ldminfo.c 23 Jun 2002 17:07:11 -0000 1.31
+++ ldminfo.c 24 Jun 2002 12:59:28 -0000 1.32
@@ -138,5 +138,5 @@
int ver = 0;
struct block_device bdev;
- struct stat st;
+ struct stat64 st;
for (a = 1; a < argc; a++) {
@@ -182,11 +182,11 @@
continue;
- if (stat (argv[a], &st)) {
- printf ("Couldn't open device: %s\n", argv[a]);
+ if (stat64 (argv[a], &st)) {
+ printf ("Couldn't open device (stat): %s\n", argv[a]);
break;
}
- if ((!S_ISBLK (st.st_rdev)) && (!S_ISREG (st.st_rdev))) {
- printf ("Couldn't open device: %s\n", argv[a]);
+ if ((!S_ISBLK (st.st_mode)) && (!S_ISREG (st.st_mode))) {
+ printf ("Couldn't open device (dev/file): %s\n", argv[a]);
break;
}
@@ -194,5 +194,5 @@
device = open64 (argv[a], O_RDONLY);
if (device < 0) {
- printf ("Couldn't open device: %s\n", argv[a]);
+ printf ("Couldn't open device (open): %s\n", argv[a]);
break;
}
Index: ldminfo.h
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/test/ldminfo.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -U2 -r1.18 -r1.19
--- ldminfo.h 23 Jun 2002 17:07:11 -0000 1.18
+++ ldminfo.h 24 Jun 2002 12:59:28 -0000 1.19
@@ -102,4 +102,5 @@
int open64 (const char *file, int oflag, ...);
long long lseek64 (int fd, long long offset, int whence);
+int stat64 (const char *file, struct stat64 *buf);
ssize_t read (int fd, void *buf, size_t count);
int close (int fd);
|