Merge lp:~smb/ubuntu/natty/e2fsprogs/branch into lp:ubuntu/natty/e2fsprogs

Proposed by Stefan Bader
Status: Merged
Merge reported by: Daniel Holbach
Merged at revision: not available
Proposed branch: lp:~smb/ubuntu/natty/e2fsprogs/branch
Merge into: lp:ubuntu/natty/e2fsprogs
Diff against target: 769 lines (+112/-400)
16 files modified
README.subset (+0/-15)
RELEASE-NOTES (+2/-2)
TODO (+0/-277)
debian/changelog (+23/-0)
debian/control (+1/-2)
debian/control.in (+1/-2)
debian/e2fsprogs.shlibs.local (+0/-2)
debian/rules (+19/-8)
e2fsck/Makefile.pq (+0/-9)
e2fsck/pass1.c (+1/-1)
lib/ext2fs/Makefile.pq (+0/-49)
lib/ext2fs/ext2_fs.h (+18/-1)
lib/ext2fs/fiemap.h (+0/-2)
misc/tune2fs.c (+47/-9)
resize/Makefile.pq (+0/-11)
util/Makefile.pq (+0/-10)
To merge this branch: bzr merge lp:~smb/ubuntu/natty/e2fsprogs/branch
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Disapprove
Ubuntu branches Pending
Review via email: mp+43541@code.launchpad.net

Description of the change

This is the same code as Lorenzo prepared in bug #681418 (merge of current Debian) with just another vcs-git removed and the intermediate upload added to the changelog.

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your work on this.

As we're very likely to get all the changes in the next upstream release, I'll reject this merge proposal for now.

review: Disapprove
Revision history for this message
Daniel Holbach (dholbach) wrote :

(See bug 681418 for more info.)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed file 'README.subset'
--- README.subset 2009-04-29 18:19:46 +0000
+++ README.subset 1970-01-01 00:00:00 +0000
@@ -1,15 +0,0 @@
1This distribution contains a subset of the e2fsprogs package; it
2contains the base libraries (ss, et, uuid, blkid) which may be used by
3other non-ext2-related applications.
4
5This may be useful for non-Linux operating systems that need these
6libraries for GNOME, but who do not need the ext2/ext3 filesystem
7utilities.
8
9The full e2fsprogs distributions can be found at the e2fsprogs web
10page, which is:
11
12 http://e2fsprogs.sourceforge.net
13
14In case of bugs in these libraries, please contact Ted Ts'o at
15tytso@mit.edu or tytso@alum.mit.edu.
160
=== modified file 'RELEASE-NOTES'
--- RELEASE-NOTES 2010-06-07 15:49:29 +0000
+++ RELEASE-NOTES 2010-12-13 17:21:59 +0000
@@ -1,5 +1,5 @@
1E2fsprogs 1.41.12 (May 17, 2010) (Up to commit 517be2d)1E2fsprogs 1.41.12 (May 17, 2010)
2=======================================================2================================
33
4Mke2fs now gives a correct error message if the external journal4Mke2fs now gives a correct error message if the external journal
5device is not found. (Addresses Red Hat Bug #572935)5device is not found. (Addresses Red Hat Bug #572935)
66
=== removed file 'TODO'
--- TODO 2009-04-29 18:19:46 +0000
+++ TODO 1970-01-01 00:00:00 +0000
@@ -1,277 +0,0 @@
1Need to process the bad block inode *before* doing the inode scan.
2
3Also check to see if the first block of the inode table is not on the
4bad block scan, and fix that. We need to check for an inaccurate
5blocks, and fix them before we start doing anything else with the
6filesystem!
7
8---------------------------------------------------
9User request:
10
11BTW: Could you please add some sort of deleted and possibly corrupted file
12 and inode list to e2fsck report. There should be filenames deleted
13 from directory inodes, files with duplicate blocks e.t.c.
14 It's pretty annoying to filter this information from e2fsck output
15 by hand :-
16
17------------------------------------------
18
19Add a "answer Yes always to this class of question" response.
20
21----------------------------------
22
23ext2fs_flush() should return a different error message for primary
24versus backup superblock flushing, so that mke2fs can print an
25appropriate error message.
26
27---------------------------------
28Date: Mon, 08 Mar 1999 21:46:14 +0100
29From: Sergio Polini <s.polini@mclink.it>
30
31
32I'm reading the sorce code of e2fsck 1.14.
33In pass2.c, lines 352-357, I read:
34
35if ((dirent->name_len & 0xFF) > EXT2_NAME_LEN) {
36 if (fix_problem(ctx, PR_2_FILENAME_LONG, &cd->pctx)) {
37 dirent->name_len = EXT2_NAME_LEN;
38 dir_modified++;
39 }
40}
41
42I think that I'll never see any messages about too long filenames,
43because "whatever & 0xFF" can never be "> 0xFF".
44Am I wrong?
45--------------------------------------
46
47Add chmod command to debugfs.
48
49------------------------------------------
50
51Date: Tue, 18 Jan 2000 17:54:53 -0800 (PST)
52From: Alan Blanchard <alan@abraxas.to>
53To: tytso@MIT.EDU
54Subject: DEBUGFS - thanks and a feature idea
55Content-Type: TEXT/PLAIN; charset=US-ASCII
56
57Theodore:
58
59First, let me thank you for writing debugfs. Recently, my Linux box
60(RH 6.0, 400 MHz PIII, on a DSL line) was hacked into. The intruder did
61an "rm -Rf" on a 34 GB drive with about 5GB of data on it. I was able to
62restore essentially the entire thing with debugfs and a bit of C code and Perl.
63Actually, I could have done the entire thing with debugfs and Perl, but I
64thought it would be too slow.
65
66During this exercise, I noticed that one small feature was lacking that would
67have made my job a bit easier. The length of a deleted directory is
68reported as 0, hence debugfs won't dump the contents of the directory to a
69file using the "dump" command. The only thing that saved me was that the
70list of disk blocks is not zeroed out. I was able to dump the contents of the
71directories by using debugfs to get the relevant block numbers, then
72using dd to get the actual data.
73
74If debugfs had a feature where it ignored the size of a directory reported by
75the inode and instead just dumped all the blocks, it would have facilited
76things a bit. This seems like a very easy feature to add.
77
78Again, thanks for writing debugfs (and all the other Linux stuff you've written!).
79
80Cheers,
81Alan Blanchard
82alan@abraxas.to
83
84
85-------------------------------------------------------------------
86
87Date: Fri, 21 Jan 2000 14:07:12 -0800
88From: "H. Peter Anvin" <hpa@www.transmeta.com>
89Subject: mkfs -cc and fsck -c
90
91b) An option to mkfs to zero the partition. Yes, it can be done with
92dd, but it would be a nicer way of doing it.
93
94------------------------------------------------------------------
95
96Add support for in ext2fs_block_iterate() for a returning the
97compressed flag blocks to block_iterate. Change default to not return
98EXT2_COMPRESSED_BLKADDR. Change e2fsck to pass this flag in.
99
100(The old compression patches did this by default all the time, which
101is bad, since it meant e2fsck never saw the EXT2_COMPRESSED_BLKADDR
102flagword.
103
104------------------------------------------------------------
105
106E2fsck should offer to clear all the blocks in an indirect block, not
107the entire inode, so there's better recovery for when an indirect
108block gets trashed.
109
110
111-------------------------------------------------------------
112
113From: Yann Dirson - LOGATIQUE <Yann.Dirson@France.Sun.COM>
114Date: Thu, 2 Mar 2000 13:52:13 +0100 (MET)
115
116During my experiments on the broken system, I noticed the following in
117the badblocks program (which I'm aware is not designed for IDE drives)
118- I'd probably have already fixed them if my home system was up :(
119
120* the syntax summary documents 2nd arg as blocks_count, which should
121probably read something like end_count.
122
123* testing past end of device is not detected, and lists those blocks
124as bad, whereas they simply do not exist.
125
126
127I think I'll probably add a "max count" option to findsuper(8), so
128that I do not have to wait for the whole disk to be scanned when the
129system had to be launched with "init=/bin/sh", in which case Ctrl-[CZ]
130and friends appear to be absolutely ignored.
131
132
133Somewhat unrelated, I just noticed the
134http://web.mit.edu/tytso/www/linux/ext2.html could be updated:
135
136- could mention SGI xfs (http://oss.sgi.com/projects/xfs/ - they just
137 release 0.03 snapshot)
138
139----------------------------------------------------------------
140
141Return-Path: <tytso@MIT.EDU>
142Date: Thu, 10 Feb 2000 13:20:14 -0500
143From: "Theodore Y. Ts'o" <tytso@MIT.EDU>
144To: R.E.Wolff@BitWizard.nl
145In-Reply-To: Rogier Wolff's message of Thu, 10 Feb 2000 08:46:30 +0100 (MET),
146 <200002100746.IAA24573@cave.bitwizard.nl>
147Subject: Re: e2fsck request for enhancement.
148Phone: (781) 391-3464
149
150 Date: Thu, 10 Feb 2000 08:46:30 +0100 (MET)
151 From: R.E.Wolff@BitWizard.nl (Rogier Wolff)
152
153 Lately, while trying to recover a broken disk, my system froze (twice,
154 until I tried something else) while copying the disk.
155
156 So I had a file of about 50Mb that was growing frantically at the
157 moment of the crash.
158
159 e2fsck, then finds an indirect block that is completely bogus. It
160 starts by asking me if it's ok to clear a few of the referenced
161 blocks. I say yes. Then it comes to the conclusion:
162
163 too many invalid blocks. Clear inode?
164
165 and then I get the option to delete the whole file. Not to truncate
166 the file to a "working" size.
167
168
169 I'd MUCH rather have e2fsck say something like:
170
171 inode 1234 references an invalid block 134345454. Hmm.
172 inode 1234 references 567 out of 50176 invalid blocks,
173 all near the end. Truncate file to 49152 blocks?
174
175 Here you can see that of the 1024 blocks near the end of the file,
176 only 567 were detected as invalid. However now 48Mb of the file will
177 be recovered, instead of thrown away.
178
179That's a good point. Actually, the right thing is for e2fsck to offer
180to clear all of the bad blocks in a particular indirect block. I don't
181know how hard it would be to do that, but I'll put it on my e2fsprogs
182TODO list.
183
184 - Ted
185
186---------------------------------------------------------------
187From e2fsprogs Debian TODO file as of 1.10-13.
188
189* Maybe make -dbg packages. Look at how others do it.
190
191---------------------------------------------------------------
192
193Add --lba option to debian icheck command, and have ways of making it
194easier to translate LBA to filesystem block numbers.
195
196-------------------------------------------------------
197
198
199
200List of projects for e2fsprogs:
201
202
2031) Make debugfs's "ncheck <inode>" command list all of the pathnames
204to an inode, not just only the first link to the inode which is found.
205(A good "intro to libext2fs programming interfaces project)
206
207 Difficulty: Low Priority: Low
208
2092) Use a code coverage tool such as Rational's PureCoverage to see
210what kind of code coverage we have for e2fsck, and try to add test
211cases to increase the code coverage for e2fsck.
212
213 Difficulty: Medium Priorty: Low
214
2153) Use a code coverage tool such as Rational's PureCoverage to see
216what kind of code coverage we have for resize2fs, and try to add test
217cases to increase the code coverage for resize2fs.
218
219 Difficulty: Medium Priorty: Medium
220
2214) Create a new I/O manager (i.e., test_io.c, unix_io.c, et.al.) which
222layers on top of an existing I/O manager which provides copy-on-write
223functionality. This COW I/O manager takes will take two open I/O
224managers, call them "base" and "changed". The "base" I/O manager is
225opened read/only, so any changes are written instead to the "changed"
226I/O manager, in a compact, non-sparse format containing the intended
227modification to the "base" filesystem.
228
229This will allow resize2fs to figure out what changes need to made to
230extend a filesystem, or expand the size of inodes in the inode table,
231and the changes can be pushed the filesystem in one fell swoop. (If
232the system crashes; the program which runs the "changed" file can be
233re-run, much like a journal replay. My assumption is that the COW
234file will contain the filesystem UUID in a the COW superblock, and the
235COW file will be stored in some place such as /var/state/e2fsprogs,
236with an init.d file to automate the replay so we can recover cleanly
237from a crash during the resize2fs process.)
238
239 Difficulty: Medium Priority: Medium
240
2415) Create a new I/O manager (i.e., test_io.c, unix_io.c, et.al.) which
242layers on top of an existing I/O manager which provides an "undo"
243functionality. This undo I/O manager takes will take two open I/O
244managers, call them "base" and "undo". The "base" I/O manager is be
245opened read/write, and when any writes are sent to the I/O manager,
246the I/O manager will check the "undo" I/O manager, using a file format
247identical to the one found in (5) above.
248
249This is useful for allowing e2fsck to create an "undo" file, which
250would make things like "e2fsck -y" much safer.
251
252 Difficulty: Low (once 5 is done) Priority: Low
253
2546) Modify resize2fs so that it can relocate and reorganize the
255filesystem in the following ways: (1) increase the inode size, so that
256an existing filesystem can use the EA-in-inode kernel patch, (2)
257reserve blocks in the resize inode to allow for on-line resizing. Use
258the COW I/O manager described in (5) in order to provide robustness in
259case of a crash during the resize/reorganization operation.
260
261 Difficulty: High Priority: Medium
262
2637) Review the EA-in-inode patches to e2fsck for correctness/code
264cleanliness. (I will probably have to do this myself -- Ted)
265
266 Difficulty: High Priorty: Medium
267
2688) Add support for extent maps to e2fsprogs. I need to review the
269extent maps first/in parallel.
270
271 Difficulty: High Priority: Medium
272
273----------------------------------
274
275Need to deal with the case where the resize inode overlaps with the
276bad blocks inode.
277
2780
=== modified file 'debian/changelog'
--- debian/changelog 2010-12-13 12:57:53 +0000
+++ debian/changelog 2010-12-13 17:21:59 +0000
@@ -1,3 +1,26 @@
1e2fsprogs (1.41.12-2ubuntu1) natty; urgency=low
2
3 * Merge from debian unstable (LP: #681418), remaining changes:
4 - debian/control: Do not build-depend on dietlibc-dev, which is universe.
5 - debian/rules:
6 + Do now allow pkg-create-dbgsym to operate on this package.
7 + Build with -O2 on powerpc to avoid a suspected toolchain bug.
8 - debian/e2fsprogs.preinst: Do not include /etc/e2fsck.conf and remove on
9 upgrade.
10 - The -p switch for resize2fs is meant for an offline resize operation which
11 is done completely at the userspace. Changed the documentation to suggest
12 an "offline" operation.
13
14 -- Lorenzo De Liso <blackz@ubuntu.com> Thu, 25 Nov 2010 15:38:54 +0100
15
16e2fsprogs (1.41.12-2) unstable; urgency=high
17
18 * Allow tune2fs to set uninit_bg without requiring an fsck
19 * Fix test in e2fsck to correctly check for EOFBLOCKS files
20 * Fix dependencies for libuuid and libblkid (Closes: #583551)
21
22 -- Theodore Y. Ts'o <tytso@mit.edu> Thu, 03 Jun 2010 09:30:36 -0400
23
1e2fsprogs (1.41.12-1ubuntu3) natty; urgency=low24e2fsprogs (1.41.12-1ubuntu3) natty; urgency=low
225
3 * No-change upload to reduce changelogs.26 * No-change upload to reduce changelogs.
427
=== modified file 'debian/control'
--- debian/control 2010-03-22 17:48:20 +0000
+++ debian/control 2010-12-13 17:21:59 +0000
@@ -1,12 +1,11 @@
1Source: e2fsprogs1Source: e2fsprogs
2Section: admin2Section: admin
3Priority: required3Priority: required
4Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Theodore Y. Ts'o <tytso@mit.edu>5XSBC-Original-Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
6Build-Depends: texi2html (>= 1.76), gettext, texinfo, dc, pkg-config, debhelper (>= 7.0), m4, libblkid-dev (>= 2.16), uuid-dev (>= 2.16)6Build-Depends: texi2html (>= 1.76), gettext, texinfo, dc, pkg-config, debhelper (>= 7.0), m4, libblkid-dev (>= 2.16), uuid-dev (>= 2.16)
7Standards-Version: 3.8.47Standards-Version: 3.8.4
8Homepage: http://e2fsprogs.sourceforge.net8Homepage: http://e2fsprogs.sourceforge.net
9Vcs-Git: git://kernel.ubuntu.com/git/e2fsprogs.git
109
11Package: e2fsck-static10Package: e2fsck-static
12Priority: optional11Priority: optional
1312
=== modified file 'debian/control.in'
--- debian/control.in 2010-03-22 17:48:20 +0000
+++ debian/control.in 2010-12-13 17:21:59 +0000
@@ -1,7 +1,7 @@
1Source: e2fsprogs1Source: e2fsprogs
2Section: admin2Section: admin
3Priority: required3Priority: required
4Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Theodore Y. Ts'o <tytso@mit.edu>5XSBC-Original-Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
6ifdef(`UTIL_LINUX_NG',6ifdef(`UTIL_LINUX_NG',
7``Build-Depends: texi2html (>= 1.76), gettext, texinfo, dc, pkg-config, debhelper (>= 7.0), m4, libblkid-dev (>= 2.16), uuid-dev (>= 2.16)7``Build-Depends: texi2html (>= 1.76), gettext, texinfo, dc, pkg-config, debhelper (>= 7.0), m4, libblkid-dev (>= 2.16), uuid-dev (>= 2.16)
@@ -10,7 +10,6 @@
10'')dnl10'')dnl
11Standards-Version: 3.8.411Standards-Version: 3.8.4
12Homepage: http://e2fsprogs.sourceforge.net12Homepage: http://e2fsprogs.sourceforge.net
13Vcs-Git: git://kernel.ubuntu.com/git/e2fsprogs.git
1413
15Package: e2fsck-static14Package: e2fsck-static
16Priority: optional15Priority: optional
1716
=== modified file 'debian/e2fsprogs.shlibs.local'
--- debian/e2fsprogs.shlibs.local 2004-09-19 09:43:14 +0000
+++ debian/e2fsprogs.shlibs.local 2010-12-13 17:21:59 +0000
@@ -1,6 +1,4 @@
1libcom_err 2 libcomerr2 (>= 1.34-1)1libcom_err 2 libcomerr2 (>= 1.34-1)
2libss 2 libss2 (>= 1.34-1)2libss 2 libss2 (>= 1.34-1)
3libuuid 1 libuuid1 (>= 1.34-1)
4libext2fs 2 e2fslibs (= ${Source-Version})3libext2fs 2 e2fslibs (= ${Source-Version})
5libe2p 2 e2fslibs (= ${Source-Version})4libe2p 2 e2fslibs (= ${Source-Version})
6libblkid 1 libblkid1 (>= 1.34-1)
75
=== modified file 'debian/rules'
--- debian/rules 2010-06-07 15:49:29 +0000
+++ debian/rules 2010-12-13 17:21:59 +0000
@@ -9,10 +9,15 @@
99
10# be paranoid10# be paranoid
11export LC_ALL=C11export LC_ALL=C
12
13# Allow distro-specific behaviour
14DISTRO :=$(shell sed -ne '/DISTRIB_ID/s/.*=//p' /etc/lsb-release 2>/dev/null || echo Debian)
15SYS_BLKID_VER := $(shell dpkg-query -W libblkid1 | cut -f 2 | cut -b 1)
16ifeq ($(SYS_BLKID_VER),2)
17UTIL_LINUX_NG ?= yes
18endif
12# no chance that pkg-create-dbgsym can cope with this package's manual construction of -dbg19# no chance that pkg-create-dbgsym can cope with this package's manual construction of -dbg
13export NO_PKG_MANGLE=120export NO_PKG_MANGLE=1
14# always build with libblkid and libuuid from util-linux
15UTIL_LINUX_NG ?= yes
1621
17# These are used for cross-compiling and for saving the configure script22# These are used for cross-compiling and for saving the configure script
18# from having to guess our platform (since we know it already)23# from having to guess our platform (since we know it already)
@@ -168,9 +173,17 @@
168M4_ARGS+=-UUTIL_LINUX_NG173M4_ARGS+=-UUTIL_LINUX_NG
169endif174endif
170175
176debian-files: debian/control debian/e2fsprogs.shlibs.local
177
178mrproper: clean
179 rm debian/control debian/e2fsprogs.shlibs.local
180
171debian/control: debian/control.in debian/rules181debian/control: debian/control.in debian/rules
172 m4 $(M4_ARGS) < debian/control.in > $@182 m4 $(M4_ARGS) < debian/control.in > $@
173183
184debian/e2fsprogs.shlibs.local: debian/e2fsprogs.shlibs.local.in
185 m4 $(M4_ARGS) < debian/e2fsprogs.shlibs.local.in > $@
186
174${CFGSTDSTAMP}:187${CFGSTDSTAMP}:
175 dh_testdir188 dh_testdir
176189
@@ -243,7 +256,7 @@
243 mkdir -p ${STAMPSDIR}256 mkdir -p ${STAMPSDIR}
244 touch ${CFGSTATICSTAMP}257 touch ${CFGSTATICSTAMP}
245258
246build: debian/control build-std build-bf $(BUILD_STATIC)259build: build-std build-bf $(BUILD_STATIC)
247260
248build-std: ${BUILDSTDSTAMP}261build-std: ${BUILDSTDSTAMP}
249${BUILDSTDSTAMP}: ${CFGSTDSTAMP}262${BUILDSTDSTAMP}: ${CFGSTDSTAMP}
@@ -283,7 +296,7 @@
283 $(MAKE) -C ${staticbuilddir}/e2fsck all e2fsck.static296 $(MAKE) -C ${staticbuilddir}/e2fsck all e2fsck.static
284 touch ${BUILDSTATICSTAMP}297 touch ${BUILDSTATICSTAMP}
285298
286clean: debian/control299clean:
287 dh_testdir300 dh_testdir
288 rm -rf ${STAMPSDIR}301 rm -rf ${STAMPSDIR}
289 [ ! -f ${stdbuilddir}/Makefile ] || $(MAKE) -C ${stdbuilddir} distclean302 [ ! -f ${stdbuilddir}/Makefile ] || $(MAKE) -C ${stdbuilddir} distclean
@@ -322,7 +335,7 @@
322 ln -s et/com_err.h ${tmpdir}/usr/include335 ln -s et/com_err.h ${tmpdir}/usr/include
323336
324 dh_movefiles337 dh_movefiles
325 test -z `find ${tmpdir} -type f`338 test -z "`find ${tmpdir} -type f`"
326339
327 # specially-built MIPS libs340 # specially-built MIPS libs
328ifneq ($(ismips),)341ifneq ($(ismips),)
@@ -455,8 +468,6 @@
455 -pe2fsprogs-dbg -pe2fslibs-dbg \468 -pe2fsprogs-dbg -pe2fslibs-dbg \
456 -plibcomerr2-dbg -plibss2-dbg469 -plibcomerr2-dbg -plibss2-dbg
457ifneq ($(UTIL_LINUX_NG),yes)470ifneq ($(UTIL_LINUX_NG),yes)
458 DH_OPTIONS= dh_installchangelogs -plibblkid${BLKID_SOVERSION} \
459 -plibblkid1-dbg
460 DH_OPTIONS= dh_installchangelogs -plibuuid${UUID_SOVERSION} \471 DH_OPTIONS= dh_installchangelogs -plibuuid${UUID_SOVERSION} \
461 -puuid-dev -puuid-runtime -puuid-runtime-dbg -plibuuid1-dbg \472 -puuid-dev -puuid-runtime -puuid-runtime-dbg -plibuuid1-dbg \
462 -plibblkid${BLKID_SOVERSION} -plibblkid1-dbg473 -plibblkid${BLKID_SOVERSION} -plibblkid1-dbg
@@ -602,4 +613,4 @@
602613
603binary: binary-indep binary-arch614binary: binary-indep binary-arch
604615
605.PHONY: binary binary-arch binary-indep clean checkroot616.PHONY: binary binary-arch binary-indep clean checkroot mrproper debian-files
606617
=== removed file 'e2fsck/Makefile.pq'
--- e2fsck/Makefile.pq 2009-04-29 18:19:46 +0000
+++ e2fsck/Makefile.pq 1970-01-01 00:00:00 +0000
@@ -1,9 +0,0 @@
1TOPSRC=..
2LIBNAME=E2FSCK.LIB
3OBJFILE=E2FSCK.LST
4
5OBJS= e2fsck.obj super.obj pass1.obj pass2.obj pass3.obj \
6 pass4.obj pass5.obj dirinfo.obj
7
8!include $(TOPSRC)\powerquest\MCONFIG
9
100
=== modified file 'e2fsck/pass1.c'
--- e2fsck/pass1.c 2010-06-07 15:49:29 +0000
+++ e2fsck/pass1.c 2010-12-13 17:21:59 +0000
@@ -2013,7 +2013,7 @@
2013 * doesn't need to be.2013 * doesn't need to be.
2014 */2014 */
2015 if ((inode->i_flags & EXT4_EOFBLOCKS_FL) &&2015 if ((inode->i_flags & EXT4_EOFBLOCKS_FL) &&
2016 (size <= (((__u64)pb.last_block + 1) * fs->blocksize))) {2016 (size >= (((__u64)pb.last_block + 1) * fs->blocksize))) {
2017 pctx->blkcount = pb.last_block;2017 pctx->blkcount = pb.last_block;
2018 if (fix_problem(ctx, PR_1_EOFBLOCKS_FL_SET, pctx)) {2018 if (fix_problem(ctx, PR_1_EOFBLOCKS_FL_SET, pctx)) {
2019 inode->i_flags &= ~EXT4_EOFBLOCKS_FL;2019 inode->i_flags &= ~EXT4_EOFBLOCKS_FL;
20202020
=== removed file 'lib/ext2fs/Makefile.pq'
--- lib/ext2fs/Makefile.pq 2009-04-29 18:19:46 +0000
+++ lib/ext2fs/Makefile.pq 1970-01-01 00:00:00 +0000
@@ -1,49 +0,0 @@
1TOPSRC=..\..
2LIBNAME=EXT2.LIB
3OBJFILE=EXT2.LST
4
5OBJS= alloc.obj \
6 alloc_tables.obj \
7 badblocks.obj \
8 bb_compat.obj \
9 bb_inode.obj \
10 bitmaps.obj \
11 bitops.obj \
12 block.obj \
13 bmap.obj \
14 bmove.obj \
15 check_desc.obj \
16 closefs.obj \
17 cmp_bitmaps.obj \
18 dblist.obj \
19 dblist_dir.obj \
20 dirblock.obj \
21 dir_iterate.obj \
22 dupfs.obj \
23 expanddir.obj \
24 fileio.obj \
25 freefs.obj \
26 get_pathname.obj \
27 icount.obj \
28 initialize.obj \
29 inline.obj \
30 inode.obj \
31 ismounted.obj \
32 link.obj \
33 lookup.obj \
34 mkdir.obj \
35 namei.obj \
36 native.obj \
37 newdir.obj \
38 openfs.obj \
39 read_bb.obj \
40 read_bb_file.obj \
41 rs_bitmap.obj \
42 rw_bitmaps.obj \
43 swapfs.obj \
44 unlink.obj \
45 valid_blk.obj \
46 version.obj
47
48!include $(TOPSRC)\powerquest\MCONFIG
49
500
=== modified file 'lib/ext2fs/ext2_fs.h'
--- lib/ext2fs/ext2_fs.h 2010-03-22 17:48:20 +0000
+++ lib/ext2fs/ext2_fs.h 2010-12-13 17:21:59 +0000
@@ -50,6 +50,7 @@
50#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */50#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */
51#define EXT2_RESIZE_INO 7 /* Reserved group descriptors inode */51#define EXT2_RESIZE_INO 7 /* Reserved group descriptors inode */
52#define EXT2_JOURNAL_INO 8 /* Journal inode */52#define EXT2_JOURNAL_INO 8 /* Journal inode */
53#define EXT2_EXCLUDE_INO 9 /* The "exclude" inode, for snapshots */
5354
54/* First non-reserved inode for old ext2 filesystems */55/* First non-reserved inode for old ext2 filesystems */
55#define EXT2_GOOD_OLD_FIRST_INO 1156#define EXT2_GOOD_OLD_FIRST_INO 11
@@ -273,7 +274,11 @@
273#define EXT2_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/274#define EXT2_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/
274#define EXT4_HUGE_FILE_FL 0x00040000 /* Set to each huge file */275#define EXT4_HUGE_FILE_FL 0x00040000 /* Set to each huge file */
275#define EXT4_EXTENTS_FL 0x00080000 /* Inode uses extents */276#define EXT4_EXTENTS_FL 0x00080000 /* Inode uses extents */
277#define EXT4_EA_INODE_FL 0x00200000 /* Inode used for large EA */
276#define EXT4_EOFBLOCKS_FL 0x00400000 /* Blocks allocated beyond EOF */278#define EXT4_EOFBLOCKS_FL 0x00400000 /* Blocks allocated beyond EOF */
279#define EXT4_SNAPFILE_FL 0x01000000 /* Inode is a snapshot */
280#define EXT4_SNAPFILE_DELETED_FL 0x04000000 /* Snapshot is being deleted */
281#define EXT4_SNAPFILE_SHRUNK_FL 0x08000000 /* Snapshot shrink has completed */
277#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */282#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */
278283
279#define EXT2_FL_USER_VISIBLE 0x004BDFFF /* User visible flags */284#define EXT2_FL_USER_VISIBLE 0x004BDFFF /* User visible flags */
@@ -462,6 +467,9 @@
462#define EXT2_FLAGS_SIGNED_HASH 0x0001 /* Signed dirhash in use */467#define EXT2_FLAGS_SIGNED_HASH 0x0001 /* Signed dirhash in use */
463#define EXT2_FLAGS_UNSIGNED_HASH 0x0002 /* Unsigned dirhash in use */468#define EXT2_FLAGS_UNSIGNED_HASH 0x0002 /* Unsigned dirhash in use */
464#define EXT2_FLAGS_TEST_FILESYS 0x0004 /* OK for use on development code */469#define EXT2_FLAGS_TEST_FILESYS 0x0004 /* OK for use on development code */
470#define EXT2_FLAGS_IS_SNAPSHOT 0x0010 /* This is a snapshot image */
471#define EXT2_FLAGS_FIX_SNAPSHOT 0x0020 /* Snapshot inodes corrupted */
472#define EXT2_FLAGS_FIX_EXCLUDE 0x0040 /* Exclude bitmaps corrupted */
465473
466/*474/*
467 * Mount flags475 * Mount flags
@@ -581,7 +589,12 @@
581 __u8 s_reserved_char_pad;589 __u8 s_reserved_char_pad;
582 __u16 s_reserved_pad; /* Padding to next 32bits */590 __u16 s_reserved_pad; /* Padding to next 32bits */
583 __u64 s_kbytes_written; /* nr of lifetime kilobytes written */591 __u64 s_kbytes_written; /* nr of lifetime kilobytes written */
584 __u32 s_reserved[160]; /* Padding to the end of the block */592 __u32 s_snapshot_inum; /* Inode number of active snapshot */
593 __u32 s_snapshot_id; /* sequential ID of active snapshot */
594 __u64 s_snapshot_r_blocks_count; /* reserved blocks for active
595 snapshot's future use */
596 __u32 s_snapshot_list; /* inode number of the head of the on-disk snapshot list */
597 __u32 s_reserved[155]; /* Padding to the end of the block */
585};598};
586599
587/*600/*
@@ -627,6 +640,7 @@
627#define EXT2_FEATURE_COMPAT_RESIZE_INODE 0x0010640#define EXT2_FEATURE_COMPAT_RESIZE_INODE 0x0010
628#define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020641#define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020
629#define EXT2_FEATURE_COMPAT_LAZY_BG 0x0040642#define EXT2_FEATURE_COMPAT_LAZY_BG 0x0040
643#define EXT2_FEATURE_COMPAT_EXCLUDE_INODE 0x0080
630644
631#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001645#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001
632#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002646#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002
@@ -635,6 +649,7 @@
635#define EXT4_FEATURE_RO_COMPAT_GDT_CSUM 0x0010649#define EXT4_FEATURE_RO_COMPAT_GDT_CSUM 0x0010
636#define EXT4_FEATURE_RO_COMPAT_DIR_NLINK 0x0020650#define EXT4_FEATURE_RO_COMPAT_DIR_NLINK 0x0020
637#define EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE 0x0040651#define EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE 0x0040
652#define EXT4_FEATURE_RO_COMPAT_HAS_SNAPSHOT 0x0080
638653
639#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001654#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001
640#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002655#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002
@@ -645,6 +660,8 @@
645#define EXT4_FEATURE_INCOMPAT_64BIT 0x0080660#define EXT4_FEATURE_INCOMPAT_64BIT 0x0080
646#define EXT4_FEATURE_INCOMPAT_MMP 0x0100661#define EXT4_FEATURE_INCOMPAT_MMP 0x0100
647#define EXT4_FEATURE_INCOMPAT_FLEX_BG 0x0200662#define EXT4_FEATURE_INCOMPAT_FLEX_BG 0x0200
663#define EXT4_FEATURE_INCOMPAT_EA_INODE 0x0400
664#define EXT4_FEATURE_INCOMPAT_DIRDATA 0x1000
648665
649666
650#define EXT2_FEATURE_COMPAT_SUPP 0667#define EXT2_FEATURE_COMPAT_SUPP 0
651668
=== modified file 'lib/ext2fs/fiemap.h'
--- lib/ext2fs/fiemap.h 2009-07-11 17:26:16 +0000
+++ lib/ext2fs/fiemap.h 2010-12-13 17:21:59 +0000
@@ -11,8 +11,6 @@
11#ifndef _LINUX_FIEMAP_H11#ifndef _LINUX_FIEMAP_H
12#define _LINUX_FIEMAP_H12#define _LINUX_FIEMAP_H
1313
14#include <linux/types.h>
15
16struct fiemap_extent {14struct fiemap_extent {
17 __u64 fe_logical; /* logical offset in bytes for the start of15 __u64 fe_logical; /* logical offset in bytes for the start of
18 * the extent from the beginning of the file */16 * the extent from the beginning of the file */
1917
=== modified file 'misc/tune2fs.c'
--- misc/tune2fs.c 2009-08-25 18:34:46 +0000
+++ misc/tune2fs.c 2010-12-13 17:21:59 +0000
@@ -326,14 +326,28 @@
326 ext2fs_mark_super_dirty(fs);326 ext2fs_mark_super_dirty(fs);
327}327}
328328
329static void request_fsck_afterwards(ext2_filsys fs)
330{
331 static int requested = 0;
332
333 if (requested++)
334 return;
335 fs->super->s_state &= ~EXT2_VALID_FS;
336 printf("\n%s\n", _(please_fsck));
337 if (mount_flags & EXT2_MF_READONLY)
338 printf(_("(and reboot afterwards!)\n"));
339}
340
329/*341/*
330 * Update the feature set as provided by the user.342 * Update the feature set as provided by the user.
331 */343 */
332static void update_feature_set(ext2_filsys fs, char *features)344static void update_feature_set(ext2_filsys fs, char *features)
333{345{
334 struct ext2_super_block *sb = fs->super;346 struct ext2_super_block *sb = fs->super;
347 struct ext2_group_desc *gd;
348 errcode_t retval;
335 __u32 old_features[3];349 __u32 old_features[3];
336 int type_err;350 int i, type_err;
337 unsigned int mask_err;351 unsigned int mask_err;
338352
339#define FEATURE_ON(type, mask) (!(old_features[(type)] & (mask)) && \353#define FEATURE_ON(type, mask) (!(old_features[(type)] & (mask)) && \
@@ -430,6 +444,36 @@
430 }444 }
431 }445 }
432446
447 if (FEATURE_ON(E2P_FEATURE_RO_INCOMPAT,
448 EXT4_FEATURE_RO_COMPAT_GDT_CSUM)) {
449 gd = fs->group_desc;
450 for (i = 0; i < fs->group_desc_count; i++, gd++) {
451 gd->bg_itable_unused = 0;
452 gd->bg_flags = EXT2_BG_INODE_ZEROED;
453 ext2fs_group_desc_csum_set(fs, i);
454 }
455 fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
456 }
457
458 if (FEATURE_OFF(E2P_FEATURE_RO_INCOMPAT,
459 EXT4_FEATURE_RO_COMPAT_GDT_CSUM)) {
460 gd = fs->group_desc;
461 for (i = 0; i < fs->group_desc_count; i++, gd++) {
462 if ((gd->bg_flags & EXT2_BG_INODE_ZEROED) == 0) {
463 /*
464 * XXX what we really should do is zap
465 * uninitialized inode tables instead.
466 */
467 request_fsck_afterwards(fs);
468 break;
469 }
470 gd->bg_itable_unused = 0;
471 gd->bg_flags = 0;
472 gd->bg_checksum = 0;
473 }
474 fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
475 }
476
433 if (sb->s_rev_level == EXT2_GOOD_OLD_REV &&477 if (sb->s_rev_level == EXT2_GOOD_OLD_REV &&
434 (sb->s_feature_compat || sb->s_feature_ro_compat ||478 (sb->s_feature_compat || sb->s_feature_ro_compat ||
435 sb->s_feature_incompat))479 sb->s_feature_incompat))
@@ -437,8 +481,6 @@
437481
438 if (FEATURE_CHANGED(E2P_FEATURE_RO_INCOMPAT,482 if (FEATURE_CHANGED(E2P_FEATURE_RO_INCOMPAT,
439 EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER) ||483 EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER) ||
440 FEATURE_CHANGED(E2P_FEATURE_RO_INCOMPAT,
441 EXT4_FEATURE_RO_COMPAT_GDT_CSUM) ||
442 FEATURE_OFF(E2P_FEATURE_RO_INCOMPAT,484 FEATURE_OFF(E2P_FEATURE_RO_INCOMPAT,
443 EXT4_FEATURE_RO_COMPAT_HUGE_FILE) ||485 EXT4_FEATURE_RO_COMPAT_HUGE_FILE) ||
444 FEATURE_CHANGED(E2P_FEATURE_INCOMPAT,486 FEATURE_CHANGED(E2P_FEATURE_INCOMPAT,
@@ -446,12 +488,8 @@
446 FEATURE_CHANGED(E2P_FEATURE_COMPAT,488 FEATURE_CHANGED(E2P_FEATURE_COMPAT,
447 EXT2_FEATURE_COMPAT_RESIZE_INODE) ||489 EXT2_FEATURE_COMPAT_RESIZE_INODE) ||
448 FEATURE_OFF(E2P_FEATURE_RO_INCOMPAT,490 FEATURE_OFF(E2P_FEATURE_RO_INCOMPAT,
449 EXT2_FEATURE_RO_COMPAT_LARGE_FILE)) {491 EXT2_FEATURE_RO_COMPAT_LARGE_FILE))
450 sb->s_state &= ~EXT2_VALID_FS;492 request_fsck_afterwards(fs);
451 printf("\n%s\n", _(please_fsck));
452 if (mount_flags & EXT2_MF_READONLY)
453 printf(_("(and reboot afterwards!)\n"));
454 }
455493
456 if ((old_features[E2P_FEATURE_COMPAT] != sb->s_feature_compat) ||494 if ((old_features[E2P_FEATURE_COMPAT] != sb->s_feature_compat) ||
457 (old_features[E2P_FEATURE_INCOMPAT] != sb->s_feature_incompat) ||495 (old_features[E2P_FEATURE_INCOMPAT] != sb->s_feature_incompat) ||
458496
=== removed file 'resize/Makefile.pq'
--- resize/Makefile.pq 2009-04-29 18:19:46 +0000
+++ resize/Makefile.pq 1970-01-01 00:00:00 +0000
@@ -1,11 +0,0 @@
1TOPSRC=..
2LIBNAME=RESIZE.LIB
3OBJFILE=RESIZE.LST
4
5OBJS= extent.obj \
6 ext2_block_move.obj \
7 ext2_inode_move.obj \
8 resize2fs.obj
9
10!include $(TOPSRC)\powerquest\MCONFIG
11
120
=== removed file 'util/Makefile.pq'
--- util/Makefile.pq 2009-04-29 18:19:46 +0000
+++ util/Makefile.pq 1970-01-01 00:00:00 +0000
@@ -1,10 +0,0 @@
1TOPSRC=..
2
3!include $(TOPSRC)\powerquest\MCONFIG
4
5ALL:: libecho.exe
6
7libecho.exe: libecho.c
8
9clean::
10 $(RM) libecho.exe

Subscribers

People subscribed via source and target branches

to all changes: