Re: btrfs convert running out of space

2015-01-26 Thread Duncan
Gareth Pye posted on Tue, 27 Jan 2015 14:24:03 +1100 as excerpted: > Have gone with the move stuff off then finish convert plan. Convert has > now finished and I'm 60% of the way through moving all the big files > back on. > > Thanks for the help guys. Glad the big-file-move-off seems to have wo

[PATCH v2 1/2] btrfs-progs: read_tree_block() and read_node_slot() cleanup.

2015-01-26 Thread Qu Wenruo
Allow read_tree_block() and read_node_slot() to return error pointer. This should help caller to get more specified error number. For existing callers, change (!eb) judgmentt to (!extent_buffer_uptodate(eb)) to keep the compatibility, and for caller missing the check, use PTR_ERR(eb) if possible.

Re: btrfs convert running out of space

2015-01-26 Thread Gareth Pye
Have gone with the move stuff off then finish convert plan. Convert has now finished and I'm 60% of the way through moving all the big files back on. Thanks for the help guys. On Mon, Jan 26, 2015 at 2:23 AM, Marc Joliet wrote: > Am Fri, 23 Jan 2015 08:46:23 + (UTC) > schrieb Duncan <1i5t5.d

[PATCH 1/2] btrfs-progs: read_tree_block() and read_node_slot() cleanup.

2015-01-26 Thread Qu Wenruo
Allow read_tree_block() and read_node_slot() to return error pointer. This should help caller to get more specified error number. For existing callers, change (!eb) judgmentt to (!extent_buffer_uptodate(eb)) to keep the compatibility, and for caller missing the check, use PTR_ERR(eb) if possible.

[PATCH 2/2] btrfs-progs: Move (set/clear_)extent_buffer_uptodate() to extent_io.h.

2015-01-26 Thread Qu Wenruo
Unlike kernel, these functions in userland just test/set/clear a member. So move them to header to avoid extra function call cost. Signed-off-by: Qu Wenruo --- extent_io.c | 23 --- extent_io.h | 26 ++ 2 files changed, 22 insertions(+), 27 deletions(-

Re: [PATCH v5] btrfs: add regression test for remount with thread_pool resized

2015-01-26 Thread Dave Chinner
On Mon, Jan 26, 2015 at 05:31:43PM +0800, Qu Wenruo wrote: > >+# get standard environment, filters and checks > >+. ./common/rc > >+. ./common/filter > >+ > >+# real QA test starts here > >+_supported_fs btrfs > >+_supported_os Linux > >+_require_scratch > >+ > >+_scratch_mkfs > /dev/null 2>&1 || _

Re: Get the diff from a file in two snapshots.

2015-01-26 Thread Stef Bon
2015-01-26 22:14 GMT+01:00 Chris Murphy : >> is there a way to get the difference between these two files by making >> use of btrfs? > > Snapper has this functionality built into it. I'm not sure if it uses > diff or something else. But the Snapper GUI in yast2 on opensuse will > let you see what f

Re: Get the diff from a file in two snapshots.

2015-01-26 Thread Chris Murphy
On Mon, Jan 26, 2015 at 1:52 PM, Stef Bon wrote: > Hi, > > I'm working on a service/program for Linux which takes care of > managing backupping of folders and the snapshots of those. > > The user can assign forlders he/she want to be backupped (corect > English?), and create a profile for this fol

Get the diff from a file in two snapshots.

2015-01-26 Thread Stef Bon
Hi, I'm working on a service/program for Linux which takes care of managing backupping of folders and the snapshots of those. The user can assign forlders he/she want to be backupped (corect English?), and create a profile for this folder. This profile is about the files which will be taken into

[PATCH 1/1] btrfs: Align EOF length to block in extent_same

2015-01-26 Thread Matt Robinson
It is not currently possible to deduplicate the last block of files whose size is not a multiple of the block size, as the btrfs_extent_same ioctl returns -EINVAL if offset + size is greater than the file size or is not aligned to the fs block size. This prevents btrfs from freeing up the last exte

Re: Bug Report Data Rescue: btrfs send ... btrfs set prop on linux 3.18-2 on Arch Linux

2015-01-26 Thread Duncan
Juergen Sauer posted on Mon, 26 Jan 2015 13:16:33 +0100 as excerpted: > I think this is an Bug in btrfs send, not to check if an btrfs > filesystem is mounted ro for refusing working. > > It may be much more easier to recover damaged systems, if such annoying > thngs would not occour. That has b

Re: Resolved...ish. was: Re: spurious I/O errors from btrfs...at the caching layer?

2015-01-26 Thread Austin S Hemmelgarn
On 2015-01-25 23:22, Zygo Blaxell wrote: It seems that the rate of spurious I/O errors varies most according to the vm.vfs_cache_pressure sysctl. At '10' the I/O errors occur so often that building a kernel is impossible. At '100' I can't reproduce even a single I/O error. I guess this is own

Bug Report Data Rescue: btrfs send ... btrfs set prop on linux 3.18-2 on Arch Linux

2015-01-26 Thread Juergen Sauer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Moin, this weekend a ssd disk got an problem. No Problem, I thought... but real word acts sometime other the you think :) 1. Szenario I got an media Error on a ssd disk. So, I think trimming the whole device may work. Mounting the btrfs in rw is not

Re: [PATCH 1/1] Btrfs: move super_kobj and device_dir_kobj from fs_info to btrfs_fs_devices

2015-01-26 Thread Anand Jain
This patch needs [PATCH 1/1] Btrfs: btrfs_release_super_kobj() should clean up the kobject data further, I am planning to clean up and split below patch to show the enhancements and fix-ups separately. Will send V2 soon. Thanks. Anand On 01/20/2015 12:02 AM, Anand Jain wrote: This patc

[PATCH 1/1] Btrfs: btrfs_release_super_kobj() should clean up the kobject data

2015-01-26 Thread Anand Jain
The following test case which is a fair tweak with in the funcation open_ctree() fails with an error from kobject module, indicating that thread tried to init an initialized object. kernel: [232104.016513] kobject (880006c1c980): tried to init an initialized object, something is seriously wro

Re: [PATCH 2/2 RESEND] btrfs: introduce shrinker for rb_tree that keeps valid btrfs_devices

2015-01-26 Thread Anand Jain
I think we won't need this patch. the coming sysfs changes will have entry point to handle missing devices/FSID. (inspired by md). That will be much cleaner to trigger the clean up based on the device FS changes. The proposed fix in this Patch, can it handle things like when customer decides to

Re: [PATCH v5] btrfs: add regression test for remount with thread_pool resized

2015-01-26 Thread Qu Wenruo
Original Message Subject: [PATCH v5] btrfs: add regression test for remount with thread_pool resized From: Xing Gu To: Date: 2015年01月26日 16:43 Regression test for a btrfs issue of resizing 'thread_pool' when remount the fs. This regression was introduced by the following l

Re: [PATCH v4] btrfs: add regression test for remount with thread_pool resized

2015-01-26 Thread gux.fnst
On 01/24/2015 06:30 AM, Dave Chinner wrote: On Fri, Jan 23, 2015 at 08:36:37PM +0800, Eryu Guan wrote: On Fri, Jan 23, 2015 at 03:28:59PM +0800, Xing Gu wrote: Regression test for a btrfs issue of resizing 'thread_pool' when remount the fs. This regression was introduced by the following lin

[PATCH v5] btrfs: add regression test for remount with thread_pool resized

2015-01-26 Thread Xing Gu
Regression test for a btrfs issue of resizing 'thread_pool' when remount the fs. This regression was introduced by the following linux kernel commit: btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue 08a9ff3264181986d1d692a4e6fce3669700c9f8 And

[PATCH] btrfs-progs: don't output operational status information to stderr

2015-01-26 Thread Xing Gu
Signed-off-by: Xing Gu --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 9b08144..48f85b1 100644 --- a/utils.c +++ b/utils.c @@ -750,7 +750,7 @@ int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret,