Whamcloud - gitweb
ChangeLog, getsize.c:
authorTheodore Ts'o <tytso@mit.edu>
Thu, 25 May 2000 23:42:22 +0000 (23:42 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 May 2000 23:42:22 +0000 (23:42 +0000)
  getsize.c: Under linux, manually define the ioctl for BLKGETSIZE if it
   isn't already defined and it's safe to do so.
.cvsignore:
  Ignore build files when builddir==srcdir

e2fsck/.cvsignore [new file with mode: 0644]
include/asm/.cvsignore [new file with mode: 0644]
lib/ext2fs/ChangeLog
lib/ext2fs/getsize.c

diff --git a/e2fsck/.cvsignore b/e2fsck/.cvsignore
new file mode 100644 (file)
index 0000000..4c1b76d
--- /dev/null
@@ -0,0 +1,6 @@
+Makefile
+e2fsck
+e2fsck.8
+e2fsck.shared
+e2fsck.static
+profiled
diff --git a/include/asm/.cvsignore b/include/asm/.cvsignore
new file mode 100644 (file)
index 0000000..8cb8a05
--- /dev/null
@@ -0,0 +1 @@
+types.h
index bfd3bf1..2107c19 100644 (file)
@@ -1,7 +1,9 @@
 2000-05-25    <tytso@snap.thunk.org>
 
        * getsize.c (ext2fs_get_device_size): Use open64() instead of
-               open() if it exists.
+               open() if it exists.  Under linux, manually define the
+               ioctl for BLKGETSIZE if it isn't already defined and it's
+               safe to do so.
 
        * unix_io.c (unix_open): Use open64() instead of open() if it
                exists. 
index 7f805b4..5b2237e 100644 (file)
 #include <sys/disklabel.h>
 #endif /* HAVE_SYS_DISKLABEL_H */
 
+#if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE)
+#define BLKGETSIZE _IO(0x12,96)        /* return device size */
+#endif
+
 #if EXT2_FLAT_INCLUDES
 #include "ext2_fs.h"
 #else