File: e2fsck-1.20.diff

package info (click to toggle)
ext2resize 1.1.17-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 772 kB
  • ctags: 678
  • sloc: ansic: 4,595; sh: 389; makefile: 56
file content (28 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- e2fsprogs-1.20.WIP-0117/e2fsck/pass1.c.orig	Wed Jan 17 19:31:08 2001
+++ e2fsprogs-1.20.WIP-0117/e2fsck/pass1.c	Thu Feb 22 16:44:33 2001
@@ -427,6 +427,9 @@
 			if (ino == EXT2_BOOT_LOADER_INO) {
 				if (LINUX_S_ISDIR(inode.i_mode))
 					problem = PR_1_RESERVED_BAD_MODE;
+			} else if (ino == EXT2_RESIZE_INO) {
+				if (!LINUX_S_ISREG(inode.i_mode))
+					problem = PR_1_RESERVED_BAD_MODE;
 			} else {
 				if (inode.i_mode != 0)
 					problem = PR_1_RESERVED_BAD_MODE;
--- e2fsprogs-1.20.WIP-0117/include/linux/ext2_fs.h.orig	Sun Jan 14 19:34:24 2001
+++ e2fsprogs-1.20.WIP-0117/include/linux/ext2_fs.h	Thu Feb 22 16:45:16 2001
@@ -48,12 +48,7 @@
 #define EXT2_ACL_DATA_INO	 4	/* ACL inode */
 #define EXT2_BOOT_LOADER_INO	 5	/* Boot loader inode */
 #define EXT2_UNDEL_DIR_INO	 6	/* Undelete directory inode */
-/*
- * 7 is reserved for EXT2_RESIZE_INO; was used for this in the past
- * for the on-line resizing patches, but there is a better way of
- * doing this which sct, andreas, and tytso discussed at the
- * Filesystem/Storage Management Workshop in Miami (October, 2000).
- */
+#define EXT2_RESIZE_INO		 7	/* Reserved group descriptors inode */
 #define EXT2_JOURNAL_INO	 8	/* Journal inode */
 
 /* First non-reserved inode for old ext2 filesystems */