kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #108791
[Bug 1434183] [NEW] btrfs: ccompress-force needs clearing when remounting with compress option
Public bug reported:
SRU Justification: (Trusty, Utopic)
[Impact]
Remounting from compress-force to compress could not clear compress-force option. The problem is there is no way for users to clear compress-force option separately.
[Fix]
upstream commit 4027e0f4c4b2df28d564560a3c65c179bebae4c8
"Btrfs: clear compress-force when remounting with compress option"
this is a simple one-liner, risk is low to zero.
[Testcase]
See attached hacked up bash script.btrfs: Without the fix I can reproduce the oops every time. With the fix, it works perfectly.
echo "MNT=$MNT"
echo "TMP=$TMP"
TMPIMG=$TMP/test.img
DEV=/dev/loop0
truncate --size 1500m $TMPIMG
losetup $DEV $TMPIMG
mkfs.btrfs -f $DEV
mount $DEV $MNT -o compress-force=lzo
mount $DEV $MNT -o remount,compress=zlib
n=$(cat /proc/mounts | grep $DEV | grep "compress-force=zlib" | wc -l)
umount $DEV
losetup -d $DEV
rm $TMPIMG
if [ $n -eq 0 ]; then
echo "compress-force=zlib cleared in remount"
exit 0
else
echo "compress-force=zlib NOT cleared in remount"
exit 1
fi
** Affects: linux (Ubuntu)
Importance: Low
Assignee: Colin Ian King (colin-king)
Status: In Progress
** Changed in: linux (Ubuntu)
Status: New => In Progress
** Changed in: linux (Ubuntu)
Importance: Undecided => Low
** Changed in: linux (Ubuntu)
Assignee: (unassigned) => Colin Ian King (colin-king)
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1434183
Title:
btrfs: ccompress-force needs clearing when remounting with compress
option
Status in linux package in Ubuntu:
In Progress
Bug description:
SRU Justification: (Trusty, Utopic)
[Impact]
Remounting from compress-force to compress could not clear compress-force option. The problem is there is no way for users to clear compress-force option separately.
[Fix]
upstream commit 4027e0f4c4b2df28d564560a3c65c179bebae4c8
"Btrfs: clear compress-force when remounting with compress option"
this is a simple one-liner, risk is low to zero.
[Testcase]
See attached hacked up bash script.btrfs: Without the fix I can reproduce the oops every time. With the fix, it works perfectly.
echo "MNT=$MNT"
echo "TMP=$TMP"
TMPIMG=$TMP/test.img
DEV=/dev/loop0
truncate --size 1500m $TMPIMG
losetup $DEV $TMPIMG
mkfs.btrfs -f $DEV
mount $DEV $MNT -o compress-force=lzo
mount $DEV $MNT -o remount,compress=zlib
n=$(cat /proc/mounts | grep $DEV | grep "compress-force=zlib" | wc -l)
umount $DEV
losetup -d $DEV
rm $TMPIMG
if [ $n -eq 0 ]; then
echo "compress-force=zlib cleared in remount"
exit 0
else
echo "compress-force=zlib NOT cleared in remount"
exit 1
fi
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1434183/+subscriptions
Follow ups
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Launchpad Bug Tracker, 2015-04-09
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Launchpad Bug Tracker, 2015-04-08
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Colin Ian King, 2015-03-30
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Colin Ian King, 2015-03-30
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Colin Ian King, 2015-03-30
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Brad Figg, 2015-03-26
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Brad Figg, 2015-03-26
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Luis Henriques, 2015-03-23
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Andy Whitcroft, 2015-03-20
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Andy Whitcroft, 2015-03-20
-
[Bug 1434183] Re: btrfs: compress-force needs clearing when remounting with compress option
From: Colin Ian King, 2015-03-19
-
[Bug 1434183] [NEW] btrfs: ccompress-force needs clearing when remounting with compress option
From: Colin Ian King, 2015-03-19
References