Fix SELinux xattr handling.
[dump.git] / CHANGES
CommitLineData
7f7d329e 1$Id: CHANGES,v 1.285 2007/02/22 20:12:50 stelian Exp $
9eacfdf0
SP
2
3Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx)
4=====================================================================
5
61. Fix printout of the 'Connection to' message in dump/restore.
7 Thanks to Dale Wiles <dwiles@users.sourceforge.net> for the
8 bug report and its fix.
b630baf0 9
c43794b1
SP
102. Fix dump -w/-W output for filesystems having the last backup
11 level equal to 0. Thanks to Pascal Bouchareine
12 <kalou@users.sourceforge.net> for reporting the bug.
13
7f7d329e
SP
143. Enable restore to handle restoring onto a different SELinux
15 policy from the dump. Thanks to Tony Nelson
16 <tony_nelson@users.sourceforge.net> for the patch.
17 (see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=189845
18 for details)
19
370f48b6 20Changes between versions 0.4b40 and 0.4b41 (released January 2, 2006)
54ebfc01 21=====================================================================
b630baf0
SP
22
231. Fix restore of dumped Access Control Lists. The previous
24 code for EA works fine, but ACLs needed conversion from the
25 ext2/3 disk format to posix_acl format before restoring.
f30c53e5 26
cb6d3f79
SP
272. Fix some issues with restoration of EA on big endian
28 platforms.
29
26ce8fc8
SP
303. Fix restore when the symtab is over 2GB in size.
31
df3d2ef9
SP
324. Made the directory hash indexing an optional feature,
33 accessible by the '-H' option of restore, and disable it
34 by default.
35
0c78942b
SP
365. Fixed dump to not include extended attributes information
37 in the toc (archive) file which confused restore -t.
38
84182f10
SP
39Changes between versions 0.4b39 and 0.4b40 (released May 2, 2005)
40=================================================================
f30c53e5
SP
41
421. Changed restore to emit warnings (instead of emitting a fatal
43 error) if a file (or a directory) is unavailable for a
44 comparision (if the user doesn't have the necessary permissions
45 to access it for example). Thanks to Kenneth Porter
46 <shiva@sewingwitch.com> for the bug report.
35ed8cf8 47
979da669
SP
482. Re-done the 'do not save directory entries to non-dumped inodes
49 (excluded from dump)' feature. The previous implementation
50 worked well for excluded directories but not for regular files.
51 Thanks to Kenneth Porter <shiva@sewingwitch.com> for the bug
52 report.
53
1ba0c4bb
SP
543. Fixed a bug in dump where the tape size was miscalculated when
55 the user used -d/-s to specify the tape characteristics. Thanks
56 to Philip Goisman <goisman@physics.arizona.edu> for reporting
57 the bug.
58
c21722b0
SP
594. Fixed another bug introduced in restore with the hashtree
60 implementation. This one caused restore to stop saying
61 "removenode: non-empty directory" in some cases.
62
cca7148b
SP
635. Added support for dumping and restoring ext2/3 extended
64 attributes (EA), like the access control lists (ACL) or
65 the security labels used by SELinux.
66
debbffbc
SP
67Changes between versions 0.4b38 and 0.4b39 (released January 21, 2005)
68======================================================================
35ed8cf8
SP
69
701. The newly added dump_on_cd_3 example was buggy, replace it
71 with an updated version from Andrew Basterfield
72 <bob@cemetery.homeunix.org>.
b79d20f1 73
30e8407d
SP
742. Made restore to chdir() back into the initial directory when
75 dumping core while aborting a comparision operation. The
76 previous behaviour was to write the corefile at the root of
77 the directory being compared, which could very well be
78 read only and preventing the corefile generation. Thanks
79 to Kenneth Porter <shiva@sewingwitch.com> for the bug report.
80
b43981b3
SP
813. Silenced the failure to call fgetflags() when comparing an
82 entry which has no ext2 attributes (as in lsattr()).
83
68415469
SP
844. Fix a brown paper bug in restore -C which broke restore and
85 caused modifications on the filesystem being compared
86 (directories containing a file with the same name as the
87 directory get renamed to RSTTMP...). Thanks to Kenneth Porter
88 <shiva@sewingwitch.com> for finding the bug and helping me
89 reproduce it.
90
18dc6e86
SP
915. Made restore -C force the -N flag (no writing allowed on
92 the disk) in order to prevent more bugs like the above one.
93
cdd136ec
SP
94Changes between versions 0.4b37 and 0.4b38 (released January 7, 2005)
95=====================================================================
b79d20f1
SP
96
971. Fix a couple of troff syntax bugs in the man pages.
98 Thanks to Eric Raymond <esr@thyrsus.com> for the patch.
d7783603 99
0556ca22
SP
1002. Made restore use either libncurses or libtermcap, depending
101 on which one is available at configure time.
102
7d422735
SP
1033. Fixed restore negative size display bug when comparing a
104 dump containing files over 2GB. Thanks to Steve Bonds
105 <sbonds@users.sourceforge.net> for the bug report.
106
585ca01a
SP
1074. Do not save directory entries to non-dumped inodes
108 (excluded from dump). This will eliminate the 'missing
109 file' warnings when doing 'restore -C'.
110
241ddca3
SP
1115. Fix dump crash when backuping a huge (2TB) filesystem,
112 due to a bogus calculation on the inode map size.
113 Thanks to Kevin B. Haines <K.B.Haines@rl.ac.uk> for
114 submitting the bug and testing the fix.
115
47acd076
SP
1166. Fix a problem in restore where the final \0 in the symbolic
117 link names could have been lost, generating corrupt filenames.
118 Thanks to Kyle Wilson <kyle.wilson@amd.com> for reporting the
119 bug.
120
741eb204
SP
1217. Implemented a hash list for the directory names in restore.
122 The linear list used before caused problems in interactive
123 restores when dealing with directories having thousands of
124 entries. Thanks to Brian Ristuccia <bristuccia@starentnetworks.com>
125 for reporting the bug.
126
a55ce914
SP
1278. Improved restore -C, this time including the directory
128 attributes into the comparision.
129
1309. Made restore understand tapes containing EA/ACLs (which will
131 be dumped by the next version of dump). In this version
132 extended attributes on the tape are ignored, for full EA/ACL
133 support wait for the next version or try the experimental EA
134 patch.
135
498a402f
SP
136Changes between versions 0.4b36 and 0.4b37 (released July 7, 2004)
137==================================================================
d7783603
SP
138
1391. Added the --enable-staticz configure option which enables
140 dump and restore to be linked with static versions of
141 libz and libbz2 (and dynamic versions of all other libraries).
142 This will make Debian users happy, because libz and libbz2
143 were the only needed libraries living in /usr, all the
144 others live in /lib. In case of system emergency, it is
145 better not to have to rely on an extra filesystem.
146 Thanks to Bdale Garbee <bdale@gag.com> for the suggestion.
e0267986 147
b3f55532
SP
1482. Fix compilation on (at least the Linux Debian port to) AMD64.
149 (<ext2fs/ext2_types.h> defines some types (__s64 and __u64)
150 that are also defined by <linux/types.h> (<asm/types.h>) and
151 they conflict).
152
1f2c193e
SP
1533. Make dump's reading of the dumpdates file a bit more robust,
154 preventing dump from crashing when the dumpdates file has
155 been modified by hand.
156
e1e4be20
SP
1574. Fixed some offset calculations in dump code which could
158 lead to "bread lseek errors" on large filesystems. Thanks
159 to Bruce Lowekamp <lowekamp@users.sourceforge.net> for
160 reporting this bug and debugging the issue.
161
c9e4e868
SP
1625. Made dump use the blkid library when searching for devices
163 by label or uuid instead of dump's own routines.
164
97be3358
SP
1656. Corrected a bug in dump where a wrong LABEL=... line in
166 /etc/fstab could prevent dump from dumping unrelated
167 filesystems. Thanks to Bruce Lowekamp
168 <lowekamp@users.sourceforge.net> for reporting the bug.
169
ddf54486
SP
170Changes between versions 0.4b35 and 0.4b36 (released April 21, 2004)
171====================================================================
e0267986
SP
172
1731. Fixed dump compilation with old gcc versions. Thanks to
174 Mike Castle <dalgoda@users.sourceforge.net> for the patch.
8ad151aa 175
75654eee
SP
1762. Fixed some warnings (howmany, roundup, powerof2 redefined)
177 when compiling against a recent glibc version.
178
43e6ea49
SP
1793. Fixed a bug in restore preventing the read of a dump tape
180 written with Solaris 7 ufsdump. Thanks to Patrick Higgins
181 <phiggins@transzap.com> for reporting the bug and providing
182 the test case.
183
d435f57f
SP
1844. Changed dump to enable the creation of volumes of different
185 sizes in a single run (make -B accept a list of values).
186 Patch contributed by Florian Zumbiehl <florz@gmx.de>.
187
e1ba02ef
SP
1885. Use the glibc provided minor() and major() macros instead
189 of our own bitmask implementation. This should be safe for
190 when the major/minor namespace will migrate to 32 bits.
191 Thanks to Zhang Jun <zhangjun@nanjing-fnst.com> for reporting
192 the bug.
193
ae6919a7
SP
1946. Made explicit in the dump man page that dump will not create
195 a remote file, it will only write to an already existing one.
196
4acaf865
SP
1977. Another try at making size estimates better again.
198
956756f2
SP
1998. Put back the inconditional running of the end-of-tape
200 script which was changed in 0.434 to be run only when -M
201 or multiple -f were NOT specified. Some users rely on this
202 feature even when it is combined with -M/-f.
203
e4e31ce9
SP
2049. Fixed restore when restoring huge backups (where rstdir...
205 temporary files are over 2GB). Thanks to
206 Raphael Jaffey <rjaffey@artic.edu> for reporting this,
207 debugging the issue and making the patch.
208
cc7747eb
SP
20910. Made restore understand FreeBSD UFS2 tapes. Thanks to
210 David <vrtin@users.sourceforge.net> for submitting the bug
211 and providing a test case.
212
28ba5cae
SP
21311. Made dump work with an arbitrary integer level (no more 10
214 levels only limitation). Thanks to Matthew
215 <msvincen@midway.uchicago.edu> for the patch.
216
dcac75e9
SP
217Changes between versions 0.4b34 and 0.4b35 (released December 21, 2003)
218=======================================================================
8ad151aa
SP
219
2201. Added a note in the dump man page saying that the default
221 blocksize can be 32 if -d is used with a high density argument.
222 Thanks to Antonios Christofides <A.Christofides@itia.ntua.gr>
223 for the patch.
ed194aec 224
008af419
SP
2252. Fixed configure to correctly understand CPPFLAGS, CFLAGS,
226 LDFLAGS environment variables. Thanks to Arcady Genkin
227 <antipode@users.sourceforge.net> for reporting the bug.
228
0d4dfd07 2293. Made -e/-E options of dump accept an unlimited number of inodes
67793be0
SP
230 to be excluded, rather than a hardcoded maximum. Thanks to
231 Dietrich Rothe <d-rothe@users.sourceforge.net> for the patch.
232
0d4dfd07
SP
2334. Updated the autoconf system to 2.50. Forced the -D_BSD_SOURCE
234 and -D_USE_BSD_SIGNAL defines in configure in order to solve
235 64bit build problems because quad_t is redifined with a
236 different signature. Thanks to Mike Harris <mharris@redhat.com>
237 for reporting this bug.
238
5d8d264f 2395. Made restore build on Solaris, making possible to
d1925e0c
SP
240 restore Linux's "enhanced" tapes. Thanks to Uwe Gohlke
241 <uwe@ugsoft.de> for the patch.
242
2436. Made an extension in the dump tape format capable of saving
244 MacOSX specific inode extensions. Uwe Gohlke <uwe@ugsoft.de>
245 wrote the extension and contributed the restore code back
246 into this codebase. The same extension mechanism will be
247 used in the future to save ACLs...
248
2497. Made rmt work correctly with regard to QFA and local/remote
250 files and tapes. The remote access will however work only
251 when the dump provided rmt version is used. If you want to
252 use another rmt server, please do not use the QFA feature.
5d8d264f 253 Thanks to Uwe Gohlke <uwe@ugsoft.de> for the patch.
d1925e0c 254
b564cb84
SP
255Changes between versions 0.4b33 and 0.4b34 (released April 18, 2003)
256====================================================================
ed194aec
SP
257
2581. Fixed the INSTALL file to reflect the actual install paths.
259 Thanks to David Ronis <ronis@ronispc.chem.mcgill.ca> for
260 reporting the bug.
4bb009da 261
d3e542e7
SP
2622. Fixed the configure script to only check for headers presence
263 instead of trying to compile them. This should fix issues
264 with old build environments. Thanks to Kari Lempiainen
265 <kari@funky.pp.fi> for reporting the bug.
266
1176b3c1
SP
2673. Fixed restore to correctly ignore sockets when comparing
268 a dump (as socket cannot be properly restored anyway). Thanks
2d32c89c
SP
269 to Gunther Reiszig <gunther@mit.edu> for reporting the bug.
270
2714. Fixed restore to correctly access the archive file (-A argument)
272 even when using a remote tape. Thanks to Fabrice Bellet
273 <fabrice@bellet.info> for reporting the bug.
1176b3c1 274
900bffdb
SP
2755. Fixed (again) handling of long (largefile) seeks in rmt.
276 Thanks to Fabrice Bellet <fabrice@bellet.info> for reporting
277 the bug.
278
6d834d25
SP
2796. Fixed restore corner case when dealing with large block sizes
280 dump is able to write now (-b 1024). Thanks to Fabrice Bellet
281 <fabrice@bellet.info> for reporting the bug.
282
cdef84ca
SP
2837. Fixed a bug preventing dump to access a filesystem having
284 a label exactly 16 bytes in length. Thanks to <minduni@ti-edu.ch>
285 for reporting the bug.
286
3458b64d
SP
2878. Made dump store dump dates using explicit timezones, fixing a
288 problem with incremental dumps if the timezone is modified
289 between the dumps. Thanks to Philippe Troin <phil@fifi.org> for
290 the bug report and the patch.
291
2be77799
SP
2929. Fixed a bug encountered when dumping individual files (not full
293 filesystems or directories) and dangling symbolic links happen
294 to be in the list of files. For as far as dump is concerned,
295 dangling symbolic links are allowed, and are dumped as is.
296 Thanks to Jin-su Ahn <jsahn@ee.snu.ac.kr> for reporting the
297 bug and providing the fix.
298
c3f69f06
SP
29910. Fixed open and creation modes and permissions for QFA and
300 table-of-contents files in dump and restore. Thanks to
301 Philippe Troin <phil@fifi.org> for the patch.
302
30311. Fixed the archive file descriptor handling enabling it to be 0.
304 This can happen in some cases when shell redirections are used.
305 Thanks to Philippe Troin <phil@fifi.org> for the patch.
306
30712. Delayed the opening of archive file until after suid had been
308 dropped (fixing a possible security issue if dump is suid).
309 Thanks to Philippe Troin <phil@fifi.org> for the patch.
310
31113. Fixed the 'S' command handling in the rmt client part.
312 Thanks to Philippe Troin <phil@fifi.org> for the patch.
313
31414. Modified the end-of-tape script handling to print out statistics
315 (and stop the timer) before launching the eot script. Also, the eot
316 script does not get run anymore when using -M (which makes sense) or
317 when multiple tapes are listed on the command line
318 (-f tape0,tape1,tapen) (which also makes sense).
319 Thanks to Philippe Troin <phil@fifi.org> for the patch.
320
e1abc9ce
SP
32115. Relicensed dump/restore under the 'revised' BSD license, as per
322 ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change.
323
206f768c
SP
32416. Added LZO compression to dump. This new compression method has
325 the advantage of being super fast, thus not killing tape streaming
326 on slow machines. Thanks to Helmut Jarausch
327 <jarausch@igpm.rwth-aachen.de> for the patch and to
328 Markus Oberhumer <markus@oberhumer.com> for giving special permission
329 to include his miniLZO project (GPL licensed) in dump/restore.
330
e2392789
SP
33117. Some small buffer overruns fixes in rmt. Thanks to Antonomasia
332 <ant@notatla.demon.co.uk> for reporting the bugs.
333
cdfe1392
SP
33418. Added a special rmt version which can do encryption when writing
335 to tape. Read examples/encrypted_rmt/README for details on
336 how to enable and configure it. Thanks to Ken Lalonde
337 <ken@globalremit.com> for the patch.
338
61e9d4ff
SP
33919. Made dump work with 2.5 kernel end of tape early warning semantics.
340 Thanks to Kai Makisara <Kai.Makisara@kolumbus.fi> for the patch.
341
8c95cc30
SP
34220. Fixed a bug which caused dump -w|-W not to work anymore, because
343 the fs_freq and fs_passno fields in /etc/mtab are always set
344 to 0 0. Thanks to Trent Piepho <xyzzy@speakeasy.org> for
345 reporting the bug.
346
cbdba727 347Changes between versions 0.4b32 and 0.4b33 (released February 10, 2003)
4bb009da
SP
348=======================================================================
349
3501. Added a note in the restore man page clarifying the question
351 'set the permissions on the current directory ?' asked by
352 restore at the end of treatment in -i and -x modes.
d86089d1 353
c898ca7a
SP
3542. Fixed the endianess issues when reading compressed tapes.
355 Thanks to Dark Force <daq4th@users.sourceforge.net> for
356 reporting this bug and providing test cases.
357
a028bdc8
SP
3583. Fixed the "ACL won't be dumped" warning message (which showed
359 an extra, unrelated error message). Thanks to Dragan Krnic
360 <dkrnic@lycos.com> for reporting this bug.
361
a8a6a503 3624. Made dump look first into /etc/mtab, then into /etc/fstab
1a886de8
SP
363 when searching for filesystem paths. Also fixed some problems
364 caused by binding mounts or multiple block device mounts.
365 Thanks to Matus Uhlar <uhlar@fantomas.sk>, Elliott Mitchell
a8a6a503
SP
366 <ehem@m5p.com>, Greg Edwards <gedwards@users.sourceforge.net>,
367 Brian Hoy <brian.hoy@opus.co.nz>. (fixes Debian bugs #147086
368 and #160305, Sourceforge bugs #618699 and #679832).
1a886de8 369
3211c85b
SP
3705. Made dump's -I option accept the value '0' meaning all the
371 read errors will be ignored. This can be useful when running
372 dump from unattended sessions (like cron jobs). Thanks to
373 John I Wang <jiwang@users.sourceforge.net> for the suggestion.
374
7fcd6df5
SP
3756. Fixed the output of dump to indicate 'blocks' instead of
376 'tape blocks' in the various messages (blocks are always
377 1 Kilobyte, tape blocks are 1 BK * '-b' argument), and
378 made it clearly print the current blocksize at the start of
379 a dump. Thanks to Michal Szymanski <msz@astrouw.edu.pl> for
380 the suggestions.
381
5bf65105
SP
3827. Made rmt understand long (largefiles) seeks.
383
dbb649e8
SP
3848. Fixed build with very old versions of libext2fs, where
385 EXT2_FT_* constants were undefined.
386
c92d83ae
SP
3879. Made dump accept the dumpdates path on the command line
388 (-D file option) instead of using only the hardcoded one.
389 Thanks to Piete Brooks <pb22@users.sourceforge.net> for the
390 suggestion.
391
1daf06b9
SP
39210. Enabled rmt, LFS, readline, QFA options by default in
393 ./configure. Updated the configure process (new versions
394 of config.guess, config.sub etc).
395
51c11d00
SP
396Changes between versions 0.4b31 and 0.4b32 (released November 15, 2002)
397=======================================================================
d86089d1
SP
398
3991. Changed dump to use fcntl(F_SETLK) style locking instead
400 of flock() when locking the dumpdates file. With the old
401 locking scheme, a local user having read rights on the
402 dumpdates file could be able to do a Denial of Service attack
403 on dump. In order to lock the dumpdates file with the new
404 scheme, the user would need to have write access on the file.
405 Thanks to Richard Johnson <Richard.Johnson3@ey.com> for
406 reporting the bug (originally a bugtraq post).
ba3af39e 407
2f562f4e
SP
4082. Fixed interactive 'ls' which caused spurious errors warnings
409 about 'undefined filetypes' detected. Thanks to Jorgen Ostling
410 <jorgen_ostling@users.sourceforge.net> for reporting this
411 bug.
412
1c736b78
SP
4133. Fixed dump's estimate when dealing with sparse inodes.
414
876861d2
SP
4154. Modified dump to allow setting a blocksize bigger than 32kB
416 (raised the limit to 1024kB), because newer hardware needs
417 this for proper operation. Thanks to Dirk Traenapp
418 <dtraenapp@users.sourceforge.net> for reporting this.
419
b8d848c9
SP
4205. Fixed a bug causing Dump to stop and report an error if an
421 inode number in the exclude file was followed by some amount
422 of whitespace. Thanks to Jeffrey Sofferin
423 <sofferin@users.sourceforge.net> for reporting this bug.
424
e531c442
SP
4256. Fixed a bug which caused restore, in some particular cases,
426 to ask some 'scary' questions and leave a bunch of RSTTMP
427 directories behind when restoring incremental tapes. Thanks
428 to Philippe Troin <phil@fifi.org> for reporting this bug and
429 providing the test cases.
430
c993d83a
SP
4317. Changed the wording when inodes are excluded from dump:
432 replaced 'Added inode 7 to exclude list' with
433 'Excluding inode 7 (resize inode) from dump', as suggested
434 by Elliott Mitchell <ehem@m5p.com> in a Debian bug report.
435
cbc7fd6a 436Changes between versions 0.4b30 and 0.4b31 (released July 30, 2002)
ba3af39e
SP
437===================================================================
438
4391. Fixed rmt open flags transmission (GNU's symbolic syntax over
440 rmt) which I broke in 0.4b29. Thanks to Eros Albertazzi
441 <eros@lamel.bo.cnr.it> for reporting the bug.
35952b8f 442
4095abc0
SP
443Changes between versions 0.4b29 and 0.4b30 (released July 25, 2002)
444===================================================================
aa1b1e7f
SP
445
4461. Made dump print out the ext2 logical block number in case of a read
447 error, which can be given as an argument to debugfs' ncheck command,
448 in order to find out the affected inode. Added note about this
449 usage in dump's man page.
ed7c25a3
SP
450
4512. Fixed a problem in restore when reading tapes written on big
452 endian machines with very old versions of dump. The patch was
453 contributed by George Helffrich <george@geology.bristol.ac.uk>.
f75cc889
SP
454
4553. Fixed the tape length calculation when using large tapes
456 and compression. Thanks to Georg Lippold
457 <g_lippold@sourceforge.net> for reporting the bug.
a9c5ed48
SP
458
4594. Added a new set of examples in dump_on_cd_2 directory, based
460 on dump_on_cd examples but somewhat enhanced, supporting DVD
461 media, and localized in english and german. Thanks to
462 Georg Lippold <g_lippold@sourceforge.net> for the new scripts.
463
9ca70cf6
SP
4645. Made dump save 32 bit UID/GID. Internally, this was achieved
465 by switching from the old BSD inode format to the new BSD
466 inode format, which means that the tape format was changed.
467 However, since all restore versions out there should
468 transparently support both inode formats, the change should
469 have no side effects. Thanks to John Yu <jky@cs.bu.edu> for
470 reporting the bug.
a18d5997
SP
471
4726. Fixed a lot of warnings in the code shown when compiling
473 with 'gcc -W'. Thanks to Matthias Andree
474 <matthias.andree@stud.uni-dortmund.de> for reporting this.
475
2a2e321d
SP
4767. Fixed a small markup bug in the dump man page. Thanks to
477 Eric S. Raymond <esr@minx.thyrsus.com> for submitting the
478 patch.
479
153f9a83
SP
4808. Rewrote entirely the man pages using the tmac.an macro
481 package (Linux man page format) instead of the original BSD
482 format. They should be now cleaner and easier to modify.
483
cf88ef4c
SP
484Changes between versions 0.4b28 and 0.4b29 (released June 8, 2002)
485==================================================================
d24dc8af
SP
486
4871. Fixed a problem in the rmt ioctl command, where ioctl's issued from
488 non Linux clients were misinterpreted. The description of the problem
489 (incompatible numbering in Linux mtio opcodes) is documented at
490 ftp://ftp.fokus.gmd.de/pub/unix/star/README.mtio . Thanks to
491