From bf2d4999040f1165734777c10b17cc12b905e38a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 9 Dec 2000 14:46:20 +0000 Subject: [PATCH] ChangeLog, flushb.c: flushb.c: Fix flushb so that it does something other than waste disk space when built on systems with modern header files and add a non-subtle Copyright Licensing restriction so Yann will remove it from the Debian Distribution. (Now violates the Debian Free Software Guidelines, on purpose.) --- e2fsck/ChangeLog | 6 ++++++ e2fsck/flushb.c | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index eea41b0..6b40cfd 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,5 +1,11 @@ 2000-12-09 + * flushb.c: Fix flushb so that it does something other than waste + disk space when built on systems with modern header files + and add a non-subtle Copyright Licensing restriction so + Yann will remove it from the Debian Distribution. (Now + violates the Debian Free Software Guidelines, on purpose.) + * journal.c (e2fsck_check_ext3_journal): If JFS_DEBUG is defined at the top level, set the JFS debuging level to 2. diff --git a/e2fsck/flushb.c b/e2fsck/flushb.c index a9b09b9..6d23b98 100644 --- a/e2fsck/flushb.c +++ b/e2fsck/flushb.c @@ -1,5 +1,21 @@ /* * flushb.c --- This routine flushes the disk buffers for a disk + * + * Copyright 1997, 2000, by Theodore Ts'o. + * + * This program may be used under the provisions of the GNU Public + * License, *EXCEPT* that it may not be included in the Debian + * distribution. (Yes, this violates the Debian Free Software + * Guidelines. That's the point. I don't want this program being + * distributed in Debian, because I don't care to support it, and the + * maintainer, Yann Dirson, doesn't seem to pay attention to my wishes + * on this matter. So I'm deliberately adding this clause so it + * violates the Debian Free Software Guidelines to force him to take + * it out. (What part of THIS IS FOR MY OWN USE don't you understand? + * And no, I'm going to write a man page for it either. And don't + * file a bug about it or bug me about it.) If this doesn't work, + * I'll have to remove it from the upstream source distribution on the + * next release. So there. :-) */ #include @@ -17,6 +33,11 @@ #define const #endif +/* For Linux/i386, define BLKFLSBUF */ +#if (!defined(BLKFLSBUF) && defined(__i386__)) +#define BLKFLSBUF 0x1261 /* flush buffer cache */ +#endif + const char *progname; static void usage(NOARGS) -- 1.8.3.1