From 4ea0a1109d761e9caaa53f6fa9e036321826c5fa Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 8 May 2000 13:33:17 +0000 Subject: ChangeLog, problem.c, problem.h, super.c: problem.c, problem.h (PR_0_HURD_CLEAR_FILETYPE): Add new problem code. super.c (check_super_block): If the OS type in the superblock is the Hurd, check to see if the filetype feature is set, and offer to clear it if so. This needs to be done since the Hurd doesn't properly support the filetype feature. (And since the hurd allows the transmogrification of files to special files and vice versa --- for no good reason that I can understand --- it can't support the filetype feature for the forseeable future, either.) ChangeLog, mke2fs.c: mke2fs.c (main): We forcibly turn off the filetype feature if the OS is the hurd, since the hurd doesn't support it. (And since the hurd allows the transmogrification of files to special files and vice versa --- for no good reason that I can understand --- it can't support the filetype feature for the forseeable future, either.) mke2fs.c (proceed_question): Fix reversed sense of proceed_question that was busted due to the internationalization patch. Fixed bug where if proceed_question was called twice, the input buffer wasn't cleared of the previous question's newline. ChangeLog, expect.1, expect.2, image.gz, name: f_hurd: Add test for Hurd-specific features (right now, just checks to make sure the filetype feature is cleared) ChangeLog, ls.c: ls.c (list_super): Change the string displayed for the Hurd to be GNU/Hurd, instead of just "GNU". --- tests/f_hurd/expect.1 | 12 ++++++++++++ tests/f_hurd/expect.2 | 7 +++++++ tests/f_hurd/image.gz | Bin 0 -> 401 bytes tests/f_hurd/name | 1 + 4 files changed, 20 insertions(+) create mode 100644 tests/f_hurd/expect.1 create mode 100644 tests/f_hurd/expect.2 create mode 100644 tests/f_hurd/image.gz create mode 100644 tests/f_hurd/name (limited to 'tests/f_hurd') diff --git a/tests/f_hurd/expect.1 b/tests/f_hurd/expect.1 new file mode 100644 index 00000000..f7bfc566 --- /dev/null +++ b/tests/f_hurd/expect.1 @@ -0,0 +1,12 @@ +The Hurd does not support the filetype feature. +Clear? yes + +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/16 files (0.0% non-contiguous), 20/100 blocks +Exit status is 1 diff --git a/tests/f_hurd/expect.2 b/tests/f_hurd/expect.2 new file mode 100644 index 00000000..44bff624 --- /dev/null +++ b/tests/f_hurd/expect.2 @@ -0,0 +1,7 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 11/16 files (0.0% non-contiguous), 20/100 blocks +Exit status is 0 diff --git a/tests/f_hurd/image.gz b/tests/f_hurd/image.gz new file mode 100644 index 00000000..58ffe0ce Binary files /dev/null and b/tests/f_hurd/image.gz differ diff --git a/tests/f_hurd/name b/tests/f_hurd/name new file mode 100644 index 00000000..a692986d --- /dev/null +++ b/tests/f_hurd/name @@ -0,0 +1 @@ +GNU/Hurd specific tests -- cgit v1.2.3