Attention: Promo

2013-10-13 Thread Euro Gewinnspiel
Attention:Promo Wir freuen uns, bestätigen Sie Ihre E-Mail als Sieger (€ 2.000.000 EUR (OS)) Held Oktober 2013 in Europa. Wir wählen zufällig Gewinner durch unsere Partner Web Directory. Senden Formular unten; Senden Name .. Kontakt ADD ... Startseite Tel. . Handy Tel. . Alt. E-mail

BTRFS Multidevice Filesystem: Save to delete one device?

2013-10-13 Thread Thomas Schneider
Hello! I have the following disk setup: 1x 3TB WD 2x 2TB WD On each disk I have created a single partition, and this partition is formatted in BTRFS. Then, I have setup a multidevice filesystem: root@pc5:/media# btrfs filesystem show Label: 'WD30EZRX-00M'  uuid:

Re: BTRFS Multidevice Filesystem: Save to delete one device?

2013-10-13 Thread Hugo Mills
On Sun, Oct 13, 2013 at 03:02:40PM +0200, Thomas Schneider wrote: Hello! I have the following disk setup: 1x 3TB WD 2x 2TB WD On each disk I have created a single partition, and this partition is formatted in BTRFS. Then, I have setup a multidevice filesystem: root@pc5:/media# btrfs

Attention: Promo

2013-10-13 Thread Euro Gewinnspiel
Attention:Promo Wir freuen uns, bestätigen Sie Ihre E-Mail als Sieger (€ 2.000.000 EUR (OS)) Held Oktober 2013 in Europa. Wir wählen zufällig Gewinner durch unsere Partner Web Directory. Senden Formular unten; Senden Name .. Kontakt ADD ... Startseite Tel. . Handy Tel. . Alt. E-mail

Can't mount btrfs - bad tree block start

2013-10-13 Thread Marius Kittelmann
Hello, after a power outage, I can't mount one of my btrfs fs anymore. The mount output is: [root@absolut ~]# mount /dev/mapper/wdb mount: wrong fs type, bad option, bad superblock on /dev/mapper/wdb, missing codepage or helper program, or other error In some cases useful info is

Re: [PATCH v6] btrfs: Fix memory leakage in the tree-log.c

2013-10-13 Thread Geyslan Gregório Bem
2013/10/11 Stefan Behrens sbehr...@giantdisaster.de: On 10/11/2013 20:35, Geyslan G. Bem wrote: In add_inode_ref() function: Initializes local pointers. Reduces the logical condition with the __add_inode_ref() return value by using only one 'goto out'. Centralizes the exiting, ensuring

Many questions from a potential btrfs user

2013-10-13 Thread Rogério Brito
Hi. I am seriously considering employing btrfs on my systems, particularly due to some space-saving features that it has (namely, deduplication and compression). In fact, I was (a few moments ago) trying to back up some of my systems to a 2TB HD that has an ext4 filesystem and, in the middle of

[PATCH v7 06/13] Btrfs: introduce dedup tree operations

2013-10-13 Thread Liu Bo
The operations consist of finding matched items, adding new items and removing items. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/ctree.h |9 ++ fs/btrfs/file-item.c | 210 ++ 2 files changed, 219 insertions(+), 0 deletions(-)

[RFC PATCH v7 00/13] Online(inband) data deduplication

2013-10-13 Thread Liu Bo
Data deduplication is a specialized data compression technique for eliminating duplicate copies of repeating data.[1] This patch set is also related to Content based storage in project ideas[2]. PATCH 1 is a hang fix with deduplication on, but it's also useful without dedup in practice use.

[PATCH v7 02/13] Btrfs: improve the delayed refs process in rm case

2013-10-13 Thread Liu Bo
While removing a file with dedup extents, we could have a great number of delayed refs pending to process, and these refs refer to droping a ref of the extent, which is of BTRFS_DROP_DELAYED_REF type. But in order to prevent an extent's ref count from going down to zero when there still are

[PATCH v7 04/13] Btrfs: disable qgroups accounting when quata_enable is 0

2013-10-13 Thread Liu Bo
It's unnecessary to do qgroups accounting without enabling quota. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/ctree.c |2 +- fs/btrfs/delayed-ref.c | 18 ++ fs/btrfs/qgroup.c |3 +++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git

[PATCH v7 07/13] Btrfs: introduce dedup state

2013-10-13 Thread Liu Bo
This introduces dedup state and relative operations to mark and unmark the dedup data range, it'll be used in later patches. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/extent_io.c | 14 ++ fs/btrfs/extent_io.h |5 + 2 files changed, 19 insertions(+), 0

[PATCH v7 01/13] Btrfs: skip merge part for delayed data refs

2013-10-13 Thread Liu Bo
When we have data deduplication on, we'll hang on the merge part because it needs to verify every queued delayed data refs related to this disk offset but we may have millions refs. And in the case of delayed data refs, we don't usually have too much data refs to merge. So it's safe to shut it

[PATCH v7 08/13] Btrfs: make ordered extent aware of dedup

2013-10-13 Thread Liu Bo
This adds a dedup flag and dedup hash into ordered extent so that we can insert dedup extents to dedup tree at endio time. The benefit is simplicity, we don't need to fall back to cleanup dedup structures if the write is cancelled for some reasons. Signed-off-by: Liu Bo bo.li@oracle.com ---

[PATCH v7 03/13] Btrfs: introduce a head ref rbtree

2013-10-13 Thread Liu Bo
The way how we process delayed refs is 1) get a bunch of head refs, 2) pick up one head ref, 3) go one node back for any delayed ref updates. The head ref is also linked in the same rbtree as the delayed ref is, so in 1) stage, we have to walk one by one including not only head refs, but delayed

[PATCH v7 11/13] Btrfs: don't return space for dedup extent

2013-10-13 Thread Liu Bo
If the ordered extent had an IOERR or something else went wrong we need to return the space for this ordered extent back to the allocator, but if the extent is marked as a dedup one, we don't free the space because we just use the existing space instead of allocating new space. Signed-off-by: Liu

[PATCH v7 05/13] Btrfs: introduce dedup tree and relatives

2013-10-13 Thread Liu Bo
This is a preparation step for online/inband dedup tree. It introduces dedup tree and its relatives, including hash driver and some structures. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/ctree.h | 73 ++ fs/btrfs/disk-io.c

[PATCH v7 13/13] Btrfs: add ioctl of dedup control

2013-10-13 Thread Liu Bo
So far we have 4 commands to control dedup behaviour, - btrfs dedup enable Create the dedup tree, and it's the very first step when you're going to use the dedup feature. - btrfs dedup disable Delete the dedup tree, after this we're not able to use dedup any more unless you enable it again. -

[PATCH v3] Btrfs-progs: add dedup subcommand

2013-10-13 Thread Liu Bo
This adds deduplication subcommands, 'btrfs dedup command path', including enable/disable/on/off. - btrfs dedup enable Create the dedup tree, and it's the very first step when you're going to use the dedup feature. - btrfs dedup disable Delete the dedup tree, after this we're not able to use

[PATCH v7 12/13] Btrfs: fix a crash of dedup ref

2013-10-13 Thread Liu Bo
The dedup reference is a special kind of delayed refs, and the delayed refs are batched to be processed later. If we find a matched dedup extent, then we queue an ADD delayed ref on it during endio work, but there is already a DROP delayed ref queued there, t1 t2

[PATCH v7 10/13] Btrfs: skip dedup reference during backref walking

2013-10-13 Thread Liu Bo
The dedup ref is quite a special one, it is just used to store the hash value of the extent and cannot be used to find data, so we skip it during backref walking. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/backref.c|9 + fs/btrfs/relocation.c |3 +++ 2 files