summaryrefslogtreecommitdiff
path: root/tests/f_hurd
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2000-05-08 13:33:17 +0000
committerTheodore Ts'o <tytso@mit.edu>2000-05-08 13:33:17 +0000
commit4ea0a1109d761e9caaa53f6fa9e036321826c5fa (patch)
tree539607f79fd8c5ac817e50ca75035aec98fb2126 /tests/f_hurd
parent3030daa8aba89830fb0623be01e507bffd636399 (diff)
downloade2fsprogs-4ea0a1109d761e9caaa53f6fa9e036321826c5fa.tar.gz
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".
Diffstat (limited to 'tests/f_hurd')
-rw-r--r--tests/f_hurd/expect.112
-rw-r--r--tests/f_hurd/expect.27
-rw-r--r--tests/f_hurd/image.gzbin0 -> 401 bytes
-rw-r--r--tests/f_hurd/name1
4 files changed, 20 insertions, 0 deletions
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
--- /dev/null
+++ b/tests/f_hurd/image.gz
Binary files 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