+Sun Aug 10 18:58:02 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * e2fsck.c (check_mount): Add stronger warning message about the
+ perils of running e2fsck on a mounted filesystem.
+
Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.11
return;
}
- printf ("%s is mounted. ", device_name);
+ printf("%s is mounted.\n\n", device_name);
+ printf("\a\a\a\aWARNING!!! Running e2fsck on a mounted filesystem "
+ "may cause\nSEVERE filesystem damage.\a\a\a\n\n");
if (isatty (0) && isatty (1))
cont = ask_yn("Do you really want to continue", -1);
else
+Sun Aug 10 09:40:54 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * error_table.h:
+ * et_name.c (error_table_name):
+ * error_message.c (error_message.c): Make code be 16-bit safe.
+
Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Release of E2fsprogs 1.11
{
int offset;
struct et_list *et;
- int table_num;
+ errcode_t table_num;
int started = 0;
char *cp;
- offset = code & ((1<<ERRCODE_RANGE)-1);
+ offset = (int) (code & ((1<<ERRCODE_RANGE)-1));
table_num = code - offset;
if (!table_num) {
#ifdef HAS_SYS_ERRLIST
#define BITS_PER_CHAR 6 /* # bits to shift per character in name */
#ifdef __STDC__
-extern const char *error_table_name(int num);
+extern const char *error_table_name(errcode_t num);
#else
extern const char *error_table_name();
#endif
* For copyright info, see mit-sipb-copyright.h.
*/
+#include "com_err.h"
#include "error_table.h"
#include "mit-sipb-copyright.h"
#include "internal.h"
static char buf[6];
const char * error_table_name(num)
- int num;
+ errcode_t num;
{
int ch;
int i;
p = buf;
num >>= ERRCODE_RANGE;
/* num = ?? ??? ??? aaa aaa bbb bbb ccc ccc ddd ddd */
- num &= 077777777;
+ num &= 077777777L;
/* num = 00 000 000 aaa aaa bbb bbb ccc ccc ddd ddd */
for (i = 4; i >= 0; i--) {
- ch = (num >> BITS_PER_CHAR * i) & ((1 << BITS_PER_CHAR) - 1);
+ ch = (int)((num >> BITS_PER_CHAR * i) & ((1 << BITS_PER_CHAR) - 1));
if (ch != 0)
*p++ = char_set[ch-1];
}