[check] set metadata extent size of tree block extents

2016-03-05 Thread Alexandre Oliva
off-by: Alexandre Oliva <ol...@gnu.org> --- cmds-check.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 0165fba..e563354 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -5208,9 +5208,10 @@ static int process_extent_item(struct btrfs_r

after crash, btrfs attempts to clean up extent it has already cleaned up

2016-02-22 Thread Alexandre Oliva
_root, ret);*/ goto out; } else { btrfs_abort_transaction(trans, extent_root, ret); -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board m

non-atomic xattr replacement in btrfs = rsync random errors

2014-11-06 Thread Alexandre Oliva
at FreeNode, so the horse was out of the barn already :-( I hope this helps, -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist|Red Hat

Re: non-atomic xattr replacement in btrfs = rsync random errors

2014-11-06 Thread Alexandre Oliva
[dropping rs...@lists.samba.org, it rejects posts from non-subscribers; refer to https://bugzilla.samba.org/show_bug.cgi?id=10925 instead] On Nov 6, 2014, Alexandre Oliva ol...@gnu.org wrote: What makes the problem visible is that btrfs appears to have a race in its handling of xattr

Re: btrfs: add -k option to filesystem df

2014-08-31 Thread Alexandre Oliva
code chooses a magnitude most suitable to present the size in a human-friendly way. I'd be happy to drop the long option, to follow GNU df's practice: there's no long option (without arguments) equivalent to -k there. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must

fixes for btrfs check --repair

2014-08-30 Thread Alexandre Oliva
are the patches. repair: remove recowed entry from the to-recow list From: Alexandre Oliva ol...@gnu.org If we attempt to repair a filesystem with metadata blocks that need recowing, we'll get into an infinite loop repeatedly recowing the first entry in the list, without ever removing it from

btrfs: add -k option to filesystem df

2014-08-30 Thread Alexandre Oliva
Introduce support for df to print sizes in KiB, easy to extend to other bases. The man page is also updated and fixed in that it made it seem like multiple paths were accepted. Signed-off-by: Alexandre Oliva ol...@gnu.org --- Documentation/btrfs-filesystem.txt |4 +++- cmds-filesystem.c

[PATCH] [btrfs] add volid to failed csum messages

2014-05-20 Thread Alexandre Oliva
it (I don't have a sure way to trigger csum errors :-), but AFAICT the objectid I've added is the same number that one can pass to mount as subvolid, or look up in the btrfs subvol list table. Signed-off-by: Alexandre Oliva ol...@gnu.org --- fs/btrfs/compression.c |8 +--- fs/btrfs/inode.c

Re: btrfs raid5

2013-10-26 Thread Alexandre Oliva
. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer -- To unsubscribe from this list: send

Re: btrfs raid5

2013-10-22 Thread Alexandre Oliva
: Alexandre Oliva ol...@gnu.org This patch is WIP, but it has enabled a raid6 filesystem on a bad disk (frequent read failures at random blocks) to work flawlessly for a couple of weeks, instead of hanging the entire filesystem upon the first read error. One of the problems is that we have

Re: Q: Why subvolumes?

2013-08-04 Thread Alexandre Oliva
to be cleaned up in background. If we had some primitive to unlink an entire subtree and clean it up in background we could use that. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF

Re: I/O errors block the entire filesystem

2013-05-15 Thread Alexandre Oliva
. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer -- To unsubscribe from this list: send the line

Re: I/O errors block the entire filesystem

2013-05-15 Thread Alexandre Oliva
is supposed to inform the upper layer about what it could read by updating the bio_vec bits in precisely the observed way. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin

Re: I/O errors block the entire filesystem

2013-05-11 Thread Alexandre Oliva
On Apr 4, 2013, Alexandre Oliva ol...@gnu.org wrote: I've been trying to figure out the btrfs I/O stack to try to understand why, sometimes (but not always), after a failure to read a (data non-replicated) block from the disk, the file being accessed becomes permanently locked

I/O errors block the entire filesystem

2013-04-04 Thread Alexandre Oliva
(no further related messages) Be verbose about the path followed after an I/O error From: Alexandre Oliva lxol...@fsfla.org --- fs/btrfs/disk-io.c | 22 -- fs/btrfs/extent_io.c |6 ++ fs/btrfs/volumes.c | 31 +-- 3 files changed

Re: corruption of active mmapped files in btrfs snapshots

2013-03-29 Thread Alexandre Oliva
for the patch, it's run flawlessly since I started gradually rolling it out onto my ceph OSDs on Monday! Ship it! :-) -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America

Re: corruption of active mmapped files in btrfs snapshots

2013-03-23 Thread Alexandre Oliva
++; } } else if (!quiet) std::cout use --repair to repair std::endl; } } } return errors; } -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board

Re: corruption of active mmapped files in btrfs snapshots

2013-03-23 Thread Alexandre Oliva
On Mar 22, 2013, David Sterba dste...@suse.cz wrote: I've reproduced this without compression, with autodefrag on. I don't have autodefrag on, unless it's enabled by default on 3.8.3 or on the for-linus tree. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must

Re: corruption of active mmapped files in btrfs snapshots

2013-03-22 Thread Alexandre Oliva
the test program at that. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer -- To unsubscribe

Re: corruption of active mmapped files in btrfs snapshots

2013-03-21 Thread Alexandre Oliva
On Mar 19, 2013, Alexandre Oliva ol...@gnu.org wrote: On Mar 19, 2013, Alexandre Oliva ol...@gnu.org wrote: that is being processed inside the snapshot. This doesn't explain why the master database occasionally gets similarly corrupted, does it? Actually, scratch this bit for now. I don't

Re: corruption of active mmapped files in btrfs snapshots

2013-03-21 Thread Alexandre Oliva
if (system(cmp snaptest./??)) { printf (\ncmp error: %s\n, strerror (errno)); break; } #endif } -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free

Re: corruption of active mmapped files in btrfs snapshots

2013-03-19 Thread Alexandre Oliva
object's Sync member function in the test; this would bring fdatasync and msync calls into the picture, that would otherwise be left entirely out of the test. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free

Re: corruption of active mmapped files in btrfs snapshots

2013-03-19 Thread Alexandre Oliva
On Mar 19, 2013, Sage Weil s...@inktank.com wrote: There is a set of unit tests in the leveldb source tree that ought to do the trick: git clone https://code.google.com/p/leveldb/ But these don't create btrfs snapshots. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org

Re: corruption of active mmapped files in btrfs snapshots

2013-03-19 Thread Alexandre Oliva
On Mar 19, 2013, Alexandre Oliva ol...@gnu.org wrote: that is being processed inside the snapshot. This doesn't explain why the master database occasionally gets similarly corrupted, does it? Actually, scratch this bit for now. I don't really have proof that the master database actually

corruption of active mmapped files in btrfs snapshots

2013-03-18 Thread Alexandre Oliva
that the problem is indeed in btrfs? TIA, -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer

Re: corruption of active mmapped files in btrfs snapshots

2013-03-18 Thread Alexandre Oliva
check, the problem must be in btrfs. On Mar 18, 2013, Alexandre Oliva ol...@gnu.org wrote: I've scripted regular checks of osd snapshots, saving the last-known-good database along with the first one that displays the corruption. Studying about two dozen failures over the weekend, that took

Re: corruption of active mmapped files in btrfs snapshots

2013-03-18 Thread Alexandre Oliva
out after each db block. No btrfs CRC errors are reported in this process. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist

Re: collapse concurrent forced allocations

2013-03-03 Thread Alexandre Oliva
On Feb 23, 2013, Alexandre Oliva ol...@gnu.org wrote: On Feb 22, 2013, Josef Bacik jba...@fusionio.com wrote: So I understand what you are getting at, but I think you are doing it wrong. If we're calling with CHUNK_ALLOC_FORCE, but somebody has already started to allocate

Re: collapse concurrent forced allocations

2013-02-23 Thread Alexandre Oliva
making sure a chunk is actually allocated, instead of doing this flag shuffling we should just do if (space_info-chunk_alloc) { spin_unlock(space_info-lock); wait_event(!space_info-chunk_alloc); return 0; } Sorry, I don't follow. -- Alexandre Oliva, freedom fighterhttp

collapse concurrent forced allocations (was: Re: clear chunk_alloc flag on retryable failure)

2013-02-21 Thread Alexandre Oliva
On Feb 21, 2013, Alexandre Oliva ol...@gnu.org wrote: What I saw in that function also happens to explain why in some cases I see filesystems allocate a huge number of chunks that remain unused (leading to the scenario above, of not having more chunks to allocate). It happens for data

ceph-on-btrfs inline-cow regression fix for 3.4.3

2012-06-12 Thread Alexandre Oliva
; + } else if (ret == -ENOSPC) { + return 1; } + btrfs_delalloc_release_metadata(inode, end + 1 - start); btrfs_drop_extent_cache(inode, start, aligned_end - 1, 0); return 0; -- 1.7.7.6 -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish

avoid redundant block group free-space checks

2011-12-11 Thread Alexandre Oliva
Sep 17 00:00:00 2001 From: Alexandre Oliva lxol...@fsfla.org Date: Mon, 12 Dec 2011 04:33:33 -0200 Subject: [PATCH] Btrfs: delay block group's free space test within allocator If a block group has a cluster, we don't want to test its free space when the cluster has taken an unknown amount of free

Re: [PATCH 02/20] Btrfs: initialize new bitmaps' list

2011-11-30 Thread Alexandre Oliva
allocating a new chunk. Patch 16 makes sure we don't jump ahead during LOOP_CACHING_WAIT, so we won't get new chunks unless they can really help us keep the system going. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi

[PATCH] Btrfs: initialize new bitmaps' list

2011-11-28 Thread Alexandre Oliva
-- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer -- To unsubscribe from this list: send the line

[PATCH 03/20] Btrfs: fix comment typo

2011-11-28 Thread Alexandre Oliva
--- fs/btrfs/extent-tree.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 5d86877..bc0f13d 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -5304,7 +5304,7 @@ alloc: /*

[PATCH 00/20] Here's my current btrfs patchset

2011-11-28 Thread Alexandre Oliva
of how we came about that scenario. Patches 14, 17, 18 and 20 were posted before, and I'm probably dropping them from future patchsets unless I find them to be still useful. Alexandre Oliva (20): Btrfs: enable removal of second disk with raid1 metadata Btrfs: initialize new bitmaps' list

[PATCH 16/20] Btrfs: try cluster but don't advance in search list

2011-11-28 Thread Alexandre Oliva
new ones in a different block group. This patch tries to allocate from an existing cluster regardless of its block group, and doesn't switch to that group, instead proceeding to try to allocate a cluster from the group it was iterating before the attempt. Signed-off-by: Alexandre Oliva ol

[PATCH 07/20] Btrfs: don't set up allocation result twice

2011-11-28 Thread Alexandre Oliva
We store the allocation start and length twice in ins, once right after the other, but with intervening calls that may prevent the duplicate from being optimized out by the compiler. Remove one of the assignments. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c

[PATCH 04/20] Btrfs: reset cluster's max_size when creating bitmap cluster

2011-11-28 Thread Alexandre Oliva
cause pointless searches for large contiguous groups, and even cause clusters that do not meet the density requirements to be set up. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/free-space-cache.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/btrfs

[PATCH 19/20] Btrfs: log when a bitmap is rejected for a cluster

2011-11-28 Thread Alexandre Oliva
--- fs/btrfs/free-space-cache.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 953f7dd..0151274 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -2316,6 +2316,16 @@

[PATCH 18/20] Btrfs: add -o mincluster option

2011-11-28 Thread Alexandre Oliva
With -o mincluster, we save the location of the last successful allocation, so as to emulate some of the cluster allocation logic (though not non-bitmap preference) without actually going through the exercise of allocating clusters. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs

[PATCH 14/20] Btrfs: introduce option to rebalance only metadata

2011-11-28 Thread Alexandre Oliva
Experimental patch to be able to compact only the metadata after excessive block groups are created. I guess it should be implemented as a balance option rather than a separate ioctl, but this was good enough for me to try it. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs

[PATCH 05/20] Btrfs: start search for new cluster at the beginning of the block group

2011-11-28 Thread Alexandre Oliva
Instead of starting at zero (offset is always zero), request a cluster starting at search_start, that denotes the beginning of the current block group. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions

[PATCH 20/20] Btrfs: don't waste metadata block groups for clustered allocation

2011-11-28 Thread Alexandre Oliva
lock, and before the point in which we now look at flags to decide whether or not we should keep the free space buffer. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c | 24 +--- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git

[PATCH 09/20] Btrfs: skip allocation attempt from empty cluster

2011-11-28 Thread Alexandre Oliva
If we don't have a cluster, don't bother trying to allocate from it, jumping right away to the attempt to allocate a new cluster. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH 12/20] Btrfs: introduce verbose debug mode for patched clustered allocation recovery

2011-11-28 Thread Alexandre Oliva
This patch adds several debug messages that helped me track down problems in the cluster allocation logic. All the messages are disabled by default, so that they're optimized away, but enabling the commented-out settings of debug brings some helpful messages. Signed-off-by: Alexandre Oliva ol

[PATCH 02/20] Btrfs: initialize new bitmaps' list

2011-11-28 Thread Alexandre Oliva
that we'll iterate over at each metadata block request. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/free-space-cache.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 6e5b7e4..ff179b1

[PATCH 15/20] Btrfs: activate allocation debugging

2011-11-28 Thread Alexandre Oliva
Activate various messages that help track down clustered allocation problems, that are disabled and optimized out by default. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/btrfs

[PATCH 08/20] Btrfs: try to allocate from cluster even at LOOP_NO_EMPTY_SIZE

2011-11-28 Thread Alexandre Oliva
If we reach LOOP_NO_EMPTY_SIZE, we won't even try to use a cluster that others might have set up. Odds are that there won't be one, but if someone else succeeded in setting it up, we might as well use it, even if we don't try to set up a cluster again. Signed-off-by: Alexandre Oliva ol

[PATCH 01/20] Btrfs: enable removal of second disk with raid1 metadata

2011-11-28 Thread Alexandre Oliva
Enable removal of a second disk even if that requires conversion of metadata from raid1 to dup, but not when data would lose replication. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/volumes.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/fs

[PATCH 10/20] Btrfs: report reason for failed relocation

2011-11-28 Thread Alexandre Oliva
btrfs filesystem balance sometimes fails on corrupted filesystems, but without any information that explains what the failure was to help track down the problem. This patch adds logging for nearly all error conditions that may cause relocation to fail. Signed-off-by: Alexandre Oliva ol

[PATCH 06/20] Btrfs: skip block groups without enough space for a cluster

2011-11-28 Thread Alexandre Oliva
in the NO_EMPTY_SIZE loop do we attempt an unclustered allocation, and by then we'll have zeroed the cluster size, so this patch won't stop us from using the block group as a last resort. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c |2 +- 1 files changed, 1 insertions

[PATCH 11/20] Btrfs: note when a bitmap is skipped because its list is in use

2011-11-28 Thread Alexandre Oliva
Bitmap lists serve two purposes: recording the order of loading/saving on-disk free space caches, and setting up a list of bitmaps to try to set up a cluster. Complain if a list is unexpectedly busy. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/free-space-cache.c |7

[PATCH 17/20] Btrfs: introduce -o cluster and -o nocluster

2011-11-28 Thread Alexandre Oliva
Introduce -o nocluster to disable the use of clusters for extent allocation, and -o cluster to reverse it. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/ctree.h |3 ++- fs/btrfs/extent-tree.c |2 +- fs/btrfs/super.c | 16 ++-- 3 files

[PATCH 13/20] Btrfs: revamp clustered allocation logic

2011-11-28 Thread Alexandre Oliva
Parameterize clusters on minimum total size, minimum chunk size and minimum contiguous size for at least one chunk, without limits on cluster, window or gap sizes. Don't tolerate any fragmentation for SSD_SPREAD; accept it for metadata, but try to keep data dense. Signed-off-by: Alexandre Oliva

[PATCH] Btrfs: don't waste metadata block groups for clustered allocation

2011-11-26 Thread Alexandre Oliva
lock, and before the point in which we now look at flags to decide whether or not we should keep the free space buffer. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/extent-tree.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff

Re: Don't prevent removal of devices that break raid reqs

2011-11-19 Thread Alexandre Oliva
On Nov 11, 2011, Chris Mason chris.ma...@oracle.com wrote: On Thu, Nov 10, 2011 at 05:32:48PM -0200, Alexandre Oliva wrote: Instead of preventing the removal of devices that would render existing raid10 or raid1 impossible, warn but go ahead with it; the rebalancing code is smart enough

Re: Revamp cluster allocation logic

2011-11-19 Thread Alexandre Oliva
On Nov 10, 2011, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: These are patches I posted before, except these are based on cmason's for-linus. Reposting at josef's request. Reposting again, at josef's request, this time consolidating the 3 patches into one. From

report relocation failures

2011-11-19 Thread Alexandre Oliva
2bbc4ae372f8ca31701db8ed0cf8e15edf76311e Mon Sep 17 00:00:00 2001 From: Alexandre Oliva lxol...@fsfla.org Date: Wed, 16 Nov 2011 01:25:06 -0200 Subject: [PATCH 6/8] Btrfs: report reason for failed relocation btrfs filesystem balance sometimes fails on corrupted filesystems, but without any information

Re: Introduce option to rebalance only metadata

2011-11-15 Thread Alexandre Oliva
On Nov 15, 2011, Ilya Dryomov idryo...@gmail.com wrote: And the exact command to mimic your patch is btrfs fi restripe start -m mount point Thanks. I wasn't aware of the restripe patch when I wrote this Quick Hack (TM). -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You

revised -o nocluster, and -o cluster to reverse on remount

2011-11-10 Thread Alexandre Oliva
before the remount. Please keep that in mind before merging the patch. From a3323c03f1b3d2cfeb4905268d117426232d4a3b Mon Sep 17 00:00:00 2001 From: Alexandre Oliva lxol...@fsfla.org Date: Sat, 29 Oct 2011 02:20:55 -0200 Subject: [PATCH 4/8] Disable clustered allocation with -o nocluster Introduce -o

Don't prevent removal of devices that break raid reqs

2011-11-10 Thread Alexandre Oliva
? Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/volumes.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4d5b29f..507afca 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1281,18

Introduce option to rebalance only metadata

2011-11-10 Thread Alexandre Oliva
a separate ioctl, but this was good enough for me to try it. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- fs/btrfs/ioctl.c |2 ++ fs/btrfs/ioctl.h |3 +++ fs/btrfs/volumes.c | 33 - fs/btrfs/volumes.h |1 + 4 files changed, 34 insertions

Re: Introduce option to rebalance only metadata

2011-11-10 Thread Alexandre Oliva
On Nov 10, 2011, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: Experimental patch to be able to compact only the metadata after clustered allocation allocated lots of unnecessary metadata block groups. It's also useful to measure performance differences between -o cluster and -o nocluster

Revamp cluster allocation logic

2011-11-10 Thread Alexandre Oliva
These are patches I posted before, except these are based on cmason's for-linus. Reposting at josef's request. From c8036334e5a033a6ca0963e8fb716d03b1945158 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva lxol...@fsfla.org Date: Fri, 14 Oct 2011 12:10:36 -0300 Subject: [PATCH 1/8] Revamp btrfs

Record end of metadata allocation

2011-11-10 Thread Alexandre Oliva
c16a9e53e41e7616e4498534eea25ca1f396d7b4 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva lxol...@fsfla.org Date: Thu, 10 Nov 2011 20:55:40 -0200 Subject: [PATCH 9/9] Add -o mincluster option. If this option is enabled, save the location of the last successful allocation, so as to emulate some of the cluster

Re: corrupted btrfs after suspend2ram uncorrectable with scrub

2011-11-01 Thread Alexandre Oliva
Hi, Gustavo, On Nov 1, 2011, Gustavo Sverzut Barbieri barbi...@gmail.com wrote: btrfs csum failed ino 2957021 extent 85041815552 csum 667310679 wanted 0 mirror 0 Is there any way to recover it? :-S Did you try mounting without data checksums? -- Alexandre Oliva, freedom fighter

Re: Patches for BTRFS (mail-server slow down in 3.0 and more)

2011-10-31 Thread Alexandre Oliva
On Oct 31, 2011, David Sterba d...@jikos.cz wrote: On Mon, Oct 31, 2011 at 02:19:18AM -0200, Alexandre Oliva wrote: On Oct 29, 2011, Chris Mason chris.ma...@oracle.com wrote: The last one isn't a bad idea, but please do make a real mount option for it ;) Like this? @@ -195,6 +195,7

Re: Patches for BTRFS (mail-server slow down in 3.0 and more)

2011-10-30 Thread Alexandre Oliva
On Oct 29, 2011, Chris Mason chris.ma...@oracle.com wrote: The last one isn't a bad idea, but please do make a real mount option for it ;) Like this? From af086e7b88637be5c9806181a1d70db9c645cb50 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva lxol...@fsfla.org Date: Sat, 29 Oct 2011 02:20:55

Re: Patches for BTRFS (mail-server slow down in 3.0 and more)

2011-10-28 Thread Alexandre Oliva
apply cleanly on 3.1). ---BeginMessage--- Parameterized clusters on minimum total size and minimum chunk size, without an upper bound. Don't tolerate fragmentation for SSD_SPREAD; accept some fragmentation for metadata but try to keep data dense. Signed-off-by: Alexandre Oliva ol

Re: “bio too big” regression and silent data corruption in 3.0

2011-08-16 Thread Alexandre Oliva
Here's some additional information and work-arounds. On Aug 7, 2011, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: A bit of investigation showed that max_hw_sectors for the USB disk was 120, much lower than the internal SATA and PATA disks. FWIW, overriding /sys/class/block/sd*/queue

Re: “bio too big” regression and silent data corruption in 3.0

2011-08-08 Thread Alexandre Oliva
On Aug 7, 2011, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: tl;dr version: 3.0 produces “bio too big” dmesg entries and silently corrupts data in “meta-raid1/data-single” configurations on disks with different max_hw_sectors, where 2.6.38 worked fine. FWIW, I just got the same problem

Re: “bio too big” regression and silent data corruption in 3.0

2011-08-08 Thread Alexandre Oliva
On Aug 7, 2011, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: 2. Removing a partition from the filesystem (say, the external disk) didn't relocate “single” block groups as such to other disks, as expected. /me reads some code and resets expectations about RAID0 in btrfs

Re: “bio too big” regression and silent data corruption in 3.0

2011-08-08 Thread Alexandre Oliva
On Aug 7, 2011, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: in very much the same way that it appears to be impossible to go back from RAID1 to DUP metadata once you temporarily add a second disk, and any metadata block group happens to be allocated before you remove it (why couldn't

help recover from unmountable btrfs

2011-08-06 Thread Alexandre Oliva
verbosity to btrfsck so that we can manually recover from a failure to update the roots. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- disk-io.c | 41 + volumes.c |3 +++ 2 files changed, 44 insertions(+), 0 deletions(-) diff --git a/disk