Your message dated Mon, 31 Jul 2017 15:19:08 +0000
with message-id <[email protected]>
and subject line Bug#824895: fixed in btrfs-progs 4.12-1
has caused the Debian Bug report #824895,
regarding "[PATCH] warn at run-time against likely data loss when
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
824895: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824895
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: btrfs-progs
Version: 4.5.2-1
Tags: patch
Control: severity -1 severe
Because btrfs-convert is known to fail, and is known to causes
data-loss that may take some months to manifest, we must provide a
warning, because data-loss is serious. This patch also includes a
contrib initramfs hook which is installed to
/usr/share/doc/btrfs-progs; it must be manually copied into place;
I've included it because this is the first place a sophisticated user
would look.
Signed-off-by: Nicholas D Steeves <[email protected]>
diff -ur --new-file btrfs-progs-4.5.2/debian/local/btrfs-convert.hook btrfs-progs-4.5.2.changed/debian/local/btrfs-convert.hook
--- btrfs-progs-4.5.2/debian/local/btrfs-convert.hook 1969-12-31 19:00:00.000000000 -0500
+++ btrfs-progs-4.5.2.changed/debian/local/btrfs-convert.hook 2016-05-20 17:00:42.460132609 -0400
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+. /usr/share/initramfs-tools/hook-functions
+
+if command -v /bin/btrfs-convert >/dev/null 2>&1; then
+ copy_exec /bin/btrfs-convert bin/btrfs-convert
+ copy_exec /bin/btrfs-convert.real bin/btrfs-convert.real
+fi
diff -ur --new-file btrfs-progs-4.5.2/debian/local/btrfs-convert.wrapper btrfs-progs-4.5.2.changed/debian/local/btrfs-convert.wrapper
--- btrfs-progs-4.5.2/debian/local/btrfs-convert.wrapper 1969-12-31 19:00:00.000000000 -0500
+++ btrfs-progs-4.5.2.changed/debian/local/btrfs-convert.wrapper 2016-05-20 17:01:01.084103049 -0400
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+cat << !EOF!
+******** WARNING ********
+Btrfs-convert is known to fail. An upstream rewrite of the
+utility is currently in progress. At this point in time,
+btrfs-convert is provided for experimental purposes only.
+
+Please do not convert filesystems filled with data you value.
+Expect that you will need to restore from backup. Beware,
+the dataloss may not be immediately apparent, and may take
+some time to manifest.
+
+If you choose to experiment with btrfs-convert, please do so
+with the willingness to work with [email protected]
+
+!EOF!
+echo -n 'Proceed (Yes/No)?: '
+
+while true; do
+ read -r choice
+ case "$choice" in
+ Yes )
+ exec /bin/btrfs-convert.real "$@"
+ exit $?
+ ;;
+ no | n | No | NO )
+ echo "Thank you for making the safe choice"
+ exit 0
+ ;;
+ * )
+ echo -n "Please answer Yes or No: "
+ ;;
+ esac
+done
diff -ur --new-file btrfs-progs-4.5.2/debian/rules btrfs-progs-4.5.2.changed/debian/rules
--- btrfs-progs-4.5.2/debian/rules 2016-05-10 05:15:55.000000000 -0400
+++ btrfs-progs-4.5.2.changed/debian/rules 2016-05-20 16:59:16.708269112 -0400
@@ -27,6 +27,12 @@
# Adding initramfs-tools integration
install -D -m 0755 debian/local/btrfs.hook debian/btrfs-progs/usr/share/initramfs-tools/hooks/btrfs
install -D -m 0755 debian/local/btrfs.local-premount debian/btrfs-progs/usr/share/initramfs-tools/scripts/local-premount/btrfs
+ install -D -m 0755 debian/local/btrfs-convert.hook debian/btrfs-progs/usr/share/doc/btrfs-convert.hook
+
+# divert btrfs-convert to btrfs-convert.real
+# and use a wrapper script to notify it is dangerous
+ mv debian/btrfs-progs/bin/btrfs-convert debian/btrfs-progs/bin/btrfs-convert.real
+ install -D -m 0755 debian/local/btrfs-convert.wrapper debian/btrfs-progs/bin/btrfs-convert
# Needs autopkgtest
override_dh_auto_test:
--- End Message ---
--- Begin Message ---
Source: btrfs-progs
Source-Version: 4.12-1
We believe that the bug you reported is fixed in the latest version of
btrfs-progs, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Dimitri John Ledkov <[email protected]> (supplier of updated btrfs-progs package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 31 Jul 2017 15:18:39 +0100
Source: btrfs-progs
Binary: btrfs-progs btrfs-tools btrfs-progs-udeb
Architecture: amd64 source
Version: 4.12-1
Distribution: unstable
Urgency: medium
Maintainer: Dimitri John Ledkov <[email protected]>
Changed-By: Dimitri John Ledkov <[email protected]>
Closes: 824895 854489
Description:
btrfs-progs - Checksumming Copy on Write Filesystem utilities
btrfs-progs-udeb - Checksumming Copy on Write Filesystem utilities (udeb)
(udeb)
btrfs-tools - transitional dummy package
Changes:
btrfs-progs (4.12-1) unstable; urgency=medium
.
[ Dimitri John Ledkov ]
* New upstream release.
* Update watch file to v4.
.
[ Nicholas D Steeves ]
* Override dh_auto_clean to work around upstream bug where make clean cannot
be run before ./configure
* Drop btrfs-convert (Closes: #824895, #854489)
* Update Source, because Chris Mason's branch hasn't been updated since v4.4
* 4.6.1-1 did not fix package license Btrfs-progs is explicitly GPL2 and not
GPL2+.
* Update copyright for new locations of: radix-tree.c and radix-tree.h
* d/control: add whitespace (cosmetic fix)
* Switch to debhelper 10 and automatically generated -dbgsym package
Checksums-Sha1:
8c26f1041da48f22d0a2f91290766dbe6f86dc2a 1897 btrfs-progs_4.12-1.dsc
d033224f0e1d37d04278d0e5e03d2137846c77fb 1587604 btrfs-progs_4.12.orig.tar.xz
d97bae6422705a9ca807471f8e122bc9fb2f98aa 14588 btrfs-progs_4.12-1.debian.tar.xz
13973ed7ffc82bb48e0568f1eb040fb114522122 4227924
btrfs-progs-dbgsym_4.12-1_amd64.deb
7502b0fd8e2a12698425ea028a4b46be3038e38e 342300
btrfs-progs-udeb_4.12-1_amd64.udeb
32a8becda92d3010a78c350c1c2cddcc1c0f97b4 6244
btrfs-progs_4.12-1_amd64.buildinfo
9300965540a1cf7d56c170b0b581990bdd08e8c5 620346 btrfs-progs_4.12-1_amd64.deb
f2287b7994555b6da7caa3def995842619069968 19468 btrfs-tools_4.12-1_amd64.deb
Checksums-Sha256:
48dba72d6a48d5446b11e008dc33697c33aeb540f19fd3e80939cd46c654c0a2 1897
btrfs-progs_4.12-1.dsc
917710c84a9d529c92038390ddf8ace19ad409f61cdcf93c38ccaf2678472ece 1587604
btrfs-progs_4.12.orig.tar.xz
d6e932b5bca98edfcb75ac0680af0671aa061a8e34069b288140c657417154da 14588
btrfs-progs_4.12-1.debian.tar.xz
e39a5f1107203108c5d3b17edb2055be004586b0b69b933ef5add968db8faf42 4227924
btrfs-progs-dbgsym_4.12-1_amd64.deb
349a76697a5f0a10b50c70a07f7569b1bb5a0c7929a43ef7f29e8b3e076539b1 342300
btrfs-progs-udeb_4.12-1_amd64.udeb
8dd0cc66a5f87b401dad94245184b2a1168036fb12fbc5cf694a58500ea00e36 6244
btrfs-progs_4.12-1_amd64.buildinfo
381fde46e5f2c0859d9395cae4c5e25ee3887663183b06b65b7b2583d24252f2 620346
btrfs-progs_4.12-1_amd64.deb
729d0bd0026b1bbbfa917d02f3b73e12fbd3b628c95edd3f25b0aced2e837e7f 19468
btrfs-tools_4.12-1_amd64.deb
Files:
6614c9d1414bd42d2390b791ae7463a0 1897 admin optional btrfs-progs_4.12-1.dsc
4b1a143677597de413381118db8c10bb 1587604 admin optional
btrfs-progs_4.12.orig.tar.xz
5b7ba79ebad3d110b6cb8247b50be49d 14588 admin optional
btrfs-progs_4.12-1.debian.tar.xz
2d2a4fc55c41ff5c7dac6fbb0bd8da28 4227924 debug extra
btrfs-progs-dbgsym_4.12-1_amd64.deb
533936b3f6f2223499a7be60a178a867 342300 debian-installer optional
btrfs-progs-udeb_4.12-1_amd64.udeb
0939afec4641e39674ecb2ccacbdf028 6244 admin optional
btrfs-progs_4.12-1_amd64.buildinfo
31eb2308a8ac2b9c7971db8a91a28893 620346 admin optional
btrfs-progs_4.12-1_amd64.deb
a2e28315c7bb2198c0ed8061c3864e50 19468 oldlibs optional
btrfs-tools_4.12-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJZf0dVAAoJEMrC2LnNLKX560wH/1+39qXpl62d9kS0kt6vcHMo
qqqE8HGw4h/6JizPmB6UGqm5HUcALtZNLzrTQyqZGurKjVv1FPlOaaaiyg9pD0aK
8OkvI+bNj2QM1C8gVdk/FkxuwXKNPz83TAMWyQn3YIC0sR4jVxWc6jKFdfvK5k1B
yHMZXhgfPdBT3gkPSF5fYfGU4NHXvmyYd5g/U0h/cu0M/WNrxauGx4odEzXgGRc2
6UdyA3Vc9wKbhm5LdpDOPFciorqFR5/DrsMbI8kkjrjeDoKElA/cexjsF3FoisIi
Js3bm8rG94ByvozrhV22PfQW3vXUV/HVlGVsdYS+xv+iSwpPzOMbwzLChmLcRVU=
=I7ui
-----END PGP SIGNATURE-----
--- End Message ---