Re: [PATCH] reinstate ceph cluster_snap support

2014-11-03 Thread Alexandre Oliva
On Oct 27, 2014, Sage Weil s...@newdream.net wrote: On Tue, 21 Oct 2014, Alexandre Oliva wrote: I have tested both methods: btrfs snapshotting of store.db (I've manually turned store.db into a btrfs subvolume), and creating a new db with all (prefix,key,value) triples. I'm undecided about

rados.py: add tmap_to_omap method

2014-10-10 Thread Alexandre Oliva
to false. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/pybind/rados.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/pybind/rados.py b/src/pybind/rados.py index 93e5040..a2394aa 100644 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -1438,6 +1438,24

Re: [PATCH] daemons: write pid file even when told not to daemonize

2014-09-04 Thread Alexandre Oliva
, indeed. It's certainly not the only way to go, but silently dropping a command line option sounds like a bug to me. Of course the patch I proposed isn't the only way to go about that... -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see

Re: [PATCH] daemons: write pid file even when told not to daemonize

2014-08-29 Thread Alexandre Oliva
forget about the earlier problems, and none surfaced because of the creation of the PID file. Is this what you were asking? On 28/08/2014 09:35, Alexandre Oliva wrote: On Jul 31, 2014, Sage Weil sw...@redhat.com wrote: On Thu, 31 Jul 2014, Loic Dachary wrote: Hi Alexandre, With this patch

Re: OSD's load_pgs takes a lot of time

2014-08-28 Thread Alexandre Oliva
flush at the end. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/osd/OSD.cc | 12 +--- src/osd/OSD.h |3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 4240ba8..504cb71 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc

Re: [PATCH] osd: requeue replays we couldn't start in this tick

2014-08-28 Thread Alexandre Oliva
in Issue #8758, that restarting any of the osds holding a PG is enough to clear the replay state. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/osd/OSD.cc | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 1e08c28..40d1121 100644

Re: [PATCH] daemons: write pid file even when told not to daemonize

2014-08-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 Brasil GNU Toolchain Engineer -- To unsubscribe from this list: send the line

[PATCH] daemons: write pid file even when told not to daemonize

2014-07-30 Thread Alexandre Oliva
systemd wants to run daemons in foreground, but daemons wouldn't write out the pid file with -f. Fixed. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/ceph_mon.cc |3 +-- src/common/config.cc |2 -- src/global/global_init.cc | 10 +- 3 files changed, 10

[PATCH] init: exec daemons or wrappers after setting up environment

2014-07-30 Thread Alexandre Oliva
Since with systemd we want to start daemons in foreground, adding an exec before the daemon (or wrapper) name saves us a running shell just waiting for the daemon to complete. There's no reason to not do so even when not using systemd, so, done... Signed-off-by: Alexandre Oliva ol...@gnu.org

Re: [PATCH] osd: speedup startup by finishing pending removals in background

2014-05-19 Thread Alexandre Oliva
On May 18, 2014, Alexandre Oliva ol...@gnu.org wrote: In hindsight, I suppose it might have been wiser to add a data member to DeletingStateRef to hold the coll_t, instead of having to search for it again, but this patch is what I tested, and it's likely good enough for now. I've now

[PATCH] ceph_filestore_dump: introduce --type=premove to start multiple removals

2014-05-18 Thread Alexandre Oliva
arranged for premove to accept a list of PGs instead of a single one, also in this patch. The OSD would still clean everything up before it would join the cluster; this was addressed in a separate patch. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/tools/ceph_filestore_dump.cc | 67

[PATCH] osd: avoid flushing every TEMP removal to speedup startup

2014-05-18 Thread Alexandre Oliva
argument to the function used to remove PGs to control whether or not to perform the final flush. The flush still happens if the call does not pass that argument, but with the patch, the startup removals skip the per-PG flush, and run a single flush at the end. Signed-off-by: Alexandre Oliva ol

[PATCH] osd: speedup startup by finishing pending removals in background

2014-05-18 Thread Alexandre Oliva
have been wiser to add a data member to DeletingStateRef to hold the coll_t, instead of having to search for it again, but this patch is what I tested, and it's likely good enough for now. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/common/config_opts.h | 10 ++ src/osd/OSD.cc

[PATCH] mon: allow osds to change their id

2014-05-18 Thread Alexandre Oliva
. It remains disabled by default. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/common/config_opts.h |1 + src/mon/OSDMonitor.cc| 14 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 9baa356

Fixes for missing and doubly-packaged files in ceph.spec

2014-02-12 Thread Alexandre Oliva
it in explicitly. Signed-off-by: Alexandre Oliva ol...@gnu.org --- ceph.spec.in |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index fb599fa..82eb102 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -416,7 +416,8 @@ fi %{_sbindir}/rcceph /sbin

packaging: do not package libdir/ceph recursively

2014-02-12 Thread Alexandre Oliva
My earlier patch was partially redundant with commit e60dcfa80dec, that didn't make 0.76, so here's the non-redundant change, as a separate patch. --- Package libdir/ceph non-recursively, to avoid duplicates, and package libdir/ceph/ceph_common.sh explicitly. Signed-off-by: Alexandre Oliva ol

Re: v0.75 released

2014-01-21 Thread Alexandre Oliva
dirty mismatches are taken seriously again. -- 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 Toolchain Engineer

Re: v0.75 released

2014-01-17 Thread Alexandre Oliva
there? -- 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 Toolchain Engineer -- To unsubscribe from this list: send

Re: [PATCH] mds: handle setxattr ceph.parent

2014-01-06 Thread Alexandre Oliva
On Jan 6, 2014, Gregory Farnum g...@inktank.com wrote: On Fri, Dec 20, 2013 at 4:50 PM, Alexandre Oliva ol...@gnu.org wrote: On Dec 20, 2013, Alexandre Oliva ol...@gnu.org wrote: back many of the osds to recent snapshots thereof, from which I'd cleaned all traces of the user.ceph._parent

Re: [PATCH] mds: handle setxattr ceph.parent

2013-12-20 Thread Alexandre Oliva
On Dec 20, 2013, Yan, Zheng zheng.z@intel.com wrote: On 12/20/2013 11:35 AM, Alexandre Oliva wrote: On Dec 19, 2013, Yan, Zheng zheng.z@intel.com wrote: next time you encountered log corruption, please open new issues at http://tracker.ceph.com/ I have saved the dumped journal

Re: [PATCH] mds: handle setxattr ceph.parent

2013-12-20 Thread Alexandre Oliva
On Dec 20, 2013, Alexandre Oliva ol...@gnu.org wrote: back many of the osds to recent snapshots thereof, from which I'd cleaned all traces of the user.ceph._parent. I intended to roll back Err, I meant user.ceph._path, of course ;-) So I think by now I'm happy to announce that it was an IO

Re: [PATCH] mds: handle setxattr ceph.parent

2013-12-19 Thread Alexandre Oliva
the down state is about, although I'm not sure where the OSDs get the info from to decide to enter that state; I've always assumed it was from pg versions known by the monitors) -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world

Re: [PATCH] reinstate ceph cluster_snap support

2013-12-19 Thread Alexandre Oliva
several osds on several hosts is hardly a way to get a causal cut (but you already knew 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

Re: [PATCH] mds: handle setxattr ceph.parent

2013-12-19 Thread Alexandre Oliva
company in the post-Snowden era :-( (something like btrfs-image -s might be good to have) I'd be glad to try to dig info that might be useful out of it, if told how to do so, but uploading the journal as taken from the cluster is not an option. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org

Re: enable old OSD snapshot to re-join a cluster

2013-12-19 Thread Alexandre Oliva
On Dec 19, 2013, Gregory Farnum g...@inktank.com wrote: On Wed, Dec 18, 2013 at 11:32 PM, Alexandre Oliva ol...@gnu.org wrote: On Dec 18, 2013, Gregory Farnum g...@inktank.com wrote: On Tue, Dec 17, 2013 at 3:36 AM, Alexandre Oliva ol...@gnu.org wrote: Here's an updated version of the patch

Re: [PATCH] mds: handle setxattr ceph.parent

2013-12-18 Thread Alexandre Oliva
On Dec 18, 2013, Yan, Zheng uker...@gmail.com wrote: On Tue, Dec 17, 2013 at 7:25 PM, Alexandre Oliva ol...@gnu.org wrote: # setfattr -n ceph.parent /cephfs/mount/path/name This seems like a good solution for fixing cephfs that was created before dumpling. There's more to it than just

Re: enable old OSD snapshot to re-join a cluster

2013-12-18 Thread Alexandre Oliva
On Dec 18, 2013, Gregory Farnum g...@inktank.com wrote: On Tue, Dec 17, 2013 at 3:36 AM, Alexandre Oliva ol...@gnu.org wrote: Here's an updated version of the patch, that makes it much faster than the earlier version, particularly when the gap between the latest osdmap known by the osd

[PATCH] mds: drop unused find_ino_dir

2013-12-17 Thread Alexandre Oliva
the attribute from my cluster, and to wipe out the code that used to set it. Here's the resulting patch. mds: drop unused find_ino_dir From: Alexandre Oliva ol...@gnu.org Remove all traces of find_ino_dir, it is no longer used. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/mds/MDCache.cc | 51

[PATCH] Fix typo in #undef in ceph-dencoder

2013-12-17 Thread Alexandre Oliva
I'm pretty sure I posted this long ago, but I don't see that it's made it. Fix typo in #undef in ceph-dencoder From: Alexandre Oliva ol...@gnu.org Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/test/encoding/ceph_dencoder.cc |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] mds: handle setxattr ceph.parent

2013-12-17 Thread Alexandre Oliva
working great! mds: handle setxattr ceph.parent From: Alexandre Oliva ol...@gnu.org Enable clients to setxattr ceph.parent to update the parent xattr. Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/mds/CInode.cc |2 +- src/mds/Server.cc |5 + 2 files changed, 6 insertions(+), 1

Re: enable old OSD snapshot to re-join a cluster

2013-12-17 Thread Alexandre Oliva
On Feb 20, 2013, Gregory Farnum g...@inktank.com wrote: On Tue, Feb 19, 2013 at 2:52 PM, Alexandre Oliva ol...@gnu.org wrote: It recently occurred to me that I messed up an OSD's storage, and decided that the easiest way to bring it back was to roll it back to an earlier snapshot I'd taken

Re: [PATCH] reinstate ceph cluster_snap support

2013-12-17 Thread Alexandre Oliva
On Aug 27, 2013, Sage Weil s...@inktank.com wrote: Hi, On Sat, 24 Aug 2013, Alexandre Oliva wrote: On Aug 23, 2013, Sage Weil s...@inktank.com wrote: FWIW Alexandre, this feature was never really complete. For it to work, we also need to snapshot the monitors, and roll them back

Re: [PATCH] reinstate ceph cluster_snap support

2013-12-17 Thread Alexandre Oliva
On Dec 17, 2013, Alexandre Oliva ol...@gnu.org wrote: Finally, eventually we should make this do a checkpoint on the mons too. We can add the osd snapping back in first, but before this can/should really be used the mons need to be snapshotted as well. Probably that's just adding

Re: [PATCH] reinstate ceph cluster_snap support

2013-12-17 Thread Alexandre Oliva
On Dec 17, 2013, Alexandre Oliva ol...@gnu.org wrote: On Dec 17, 2013, Alexandre Oliva ol...@gnu.org wrote: Finally, eventually we should make this do a checkpoint on the mons too. We can add the osd snapping back in first, but before this can/should really be used the mons need

[PATCH] osd: compute full ratio from kb_avail

2013-09-17 Thread Alexandre Oliva
-by: Alexandre Oliva ol...@gnu.org --- src/osd/OSD.cc |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 66364ec3..841f1c4 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2457,7 +2457,12 @@ void OSDService::check_nearfull_warning(const

Re: [PATCH] enable mds rejoin with active inodes' old parent xattrs

2013-08-24 Thread Alexandre Oliva
On Aug 23, 2013, Gregory Farnum g...@inktank.com wrote: On Fri, Aug 23, 2013 at 4:00 AM, Alexandre Oliva ol...@gnu.org wrote: On Aug 22, 2013, Yan, Zheng uker...@gmail.com wrote: This is not bug. Only the tail entry of the path encoded in the parent xattrs need to be updated. (the entry

Re: [PATCH] reinstate ceph cluster_snap support

2013-08-24 Thread Alexandre Oliva
), and crashed. Here's a fixed version, that makes sure we don't start the iteration before m-get_first(). reinstate ceph cluster_snap support From: Alexandre Oliva ol...@gnu.org This patch brings back and updates (for dumpling) the code originally introduced to support “ceph osd cluster_snap snap

Re: [PATCH] mds: update backtrace when old format inode is touched

2013-08-23 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: [PATCH] mds: update backtrace when old format inode is touched

2013-08-23 Thread Alexandre Oliva
On Aug 23, 2013, Alexandre Oliva ol...@gnu.org wrote: On Aug 22, 2013, Yan, Zheng zheng.z@intel.com wrote: We updated inode format version to 7 when introducing inode backtrace. If we found a inode's format version 7 when fetching the inode, set the inode's backtrace_version to 0

[PATCH] enable mds rejoin with active inodes' old parent xattrs

2013-08-22 Thread Alexandre Oliva
-off-by: Alexandre Oliva ol...@gnu.org --- src/mds/MDCache.cc |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index e592dde..b6c37aec 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -7940,7 +7940,7 @@ void MDCache

Re: cuttlefish ceph-fuse writes make for frequent inconsistent pgs

2013-05-28 Thread Alexandre Oliva
On May 27, 2013, Samuel Just sam.j...@inktank.com wrote: Thanks for the detailed information! Xfs? btrfs. Were there any osd restarts/power cycles? I can't rule that out, but I'm afraid it was a while ago, and my logs don't go that far back. -- Alexandre Oliva, freedom fighterhttp

cuttlefish ceph-fuse writes make for frequent inconsistent pgs

2013-05-27 Thread Alexandre Oliva
junk, but it wouldn't explain why the heck several small files ended up taking up an entire 4MiB chunk on the OSDs. Thoughts? -- 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: v0.60 released

2013-04-02 Thread Alexandre Oliva
file so that rpms would build. Fix compat decoding of session_info_t From: Alexandre Oliva ol...@gnu.org Compat decoding built a settid_t temporary to decode completed_requests with its old type and took info from the set and put it in completed_requests after decoding, but it decoded into the new

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-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

mds crashes upon access to some snapshotted files

2013-02-16 Thread Alexandre Oliva
to put it in the upcoming stable release? Any ideas of what to do to find out why I need this patch, and/or what I could do to not need this patch any more? Thanks, mds: don't crash when missing oldparent From: Alexandre Oliva ol...@gnu.org If we can't find oldparent, skip creating the snapshot

silence logrotate some more

2013-02-06 Thread Alexandre Oliva
I was getting email with logrotate error output from “which invoke-rc.d” on systems without an invoke-rc.d. This patch silences it. Silence stderr from which when running logrotate From: Alexandre Oliva ol...@gnu.org Signed-off-by: Alexandre Oliva ol...@gnu.org --- src/logrotate.conf |9

two trivial patches for the upcoming stable release

2012-11-26 Thread Alexandre Oliva
command, and for some reason [ -x ] passes, so we end up trying to run the non-existing invoke-rc.d instead of falling back to other alternatives as intended. Search for srcdir/.git in check_version From: Alexandre Oliva ol...@lsd.ic.unicamp.br Support srcdir != . looking for .git in srcdir when

Re: [PATCH] Add old_inodes to emetablob

2012-08-27 Thread Alexandre Oliva
put the warning, I don't know whether it ever hit :-( -- 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

Re: [PATCH] Add old_inodes to emetablob

2012-08-18 Thread Alexandre Oliva
On Mar 3, 2012, Sage Weil s...@newdream.net wrote: On Sat, 25 Feb 2012, Alexandre Oliva wrote: On Feb 23, 2012, Sage Weil s...@newdream.net wrote: On Tue, 21 Feb 2012, Alexandre Oliva wrote: This was supposed to fix bug 1946, and likely bug 1849 too, but it looks like something's still

Re: Preserve dir default_file_layout in encoded inode

2012-08-17 Thread Alexandre Oliva
On Aug 17, 2012, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: On Aug 16, 2012, Sage Weil s...@inktank.com wrote: I've dusted it off and repushed it.. can you take a look? wip-mds-layout. The patch looks good, but testing it is going to be a bit of a challenge because of the on-disk

Re: Preserve dir default_file_layout in encoded inode

2012-08-16 Thread Alexandre Oliva
. I'll figure something out, once I'm done with an ongoing cluster operation. We aren't allowed to write any projected (i.e., unjournaled) changes to other objects until they've committed. Aah, thanks. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you

Don't package no longer installed crush headers

2012-08-14 Thread Alexandre Oliva
The rules that install crush headers are commented out in src/Makefile.am, so don't attempt to package them. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- ceph.spec.in | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index

Fix local messages and lost wake-up in SimpleMessenger

2012-08-14 Thread Alexandre Oliva
Don't wait for a signal if the dispatch queue is non-empty already, and support a non-NULL pipe for local responses. If we were to require pipe to be NULL for that, the response would be lost. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- src/msg/SimpleMessenger.cc |4 ++-- 1

Re: Fix local messages and lost wake-up in SimpleMessenger

2012-08-14 Thread Alexandre Oliva
On Aug 14, 2012, Alexandre Oliva ol...@lsd.ic.unicamp.br wrote: Don't wait for a signal if the dispatch queue is non-empty already, and support a non-NULL pipe for local responses. If we were to require pipe to be NULL for that, the response would be lost. Although this patch applies to 0.50

Re: Fix local messages and lost wake-up in SimpleMessenger

2012-08-14 Thread Alexandre Oliva
mds # maybe not needed mount /mnt/ceph # kick all of sub1/ and sub2/ out of the cache somehow, and then: ls -lR /mnt/ceph/sub2 # freezes # restarting mds at this point may get it stuck at rejoin -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish

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

Re: leveldb build issues in 0.44

2012-03-22 Thread Alexandre Oliva
, but if these macros are overridden in the make command line, the flags are dropped, and the build fails. leveldb should probably use AM_CFLAGS instead, but the spec file can specify the preferred CFLAGS in the configure command line, and then everything will work as expected. Signed-off-by: Alexandre Oliva ol

Re: [PATCH] Add old_inodes to emetablob

2012-03-09 Thread Alexandre Oliva
to match. -- 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

Re: [PATCH] Add old_inodes to emetablob

2012-02-24 Thread Alexandre Oliva
On Feb 23, 2012, Sage Weil s...@newdream.net wrote: On Tue, 21 Feb 2012, Alexandre Oliva wrote: This was supposed to fix bug 1946, and likely bug 1849 too, but it looks like something's still missing for a complete fix. fuse-unmounting between touching a dir and creating a snapshot seems

[PATCH] Fix ceph-mds --journal-reset

2012-02-22 Thread Alexandre Oliva
Complete configuration initialization for special actions, and hold Resetter lock while running reset. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- src/ceph_mds.cc |1 + src/mds/Resetter.cc |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src

[PATCH] Add old_inodes to emetablob

2012-02-22 Thread Alexandre Oliva
shortly afterwards very often results in the wrong timestamp for the snapshot. 8- Add information about old inodes to the mds journal. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- src/mds/events/EMetaBlob.h | 32 +--- src/mds/journal.cc |2

avoid crashes from faulty crushmap

2012-02-03 Thread Alexandre Oliva
-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- src/crush/mapper.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/crush/mapper.c b/src/crush/mapper.c index 1e475b40..6ce4c97 100644 --- a/src/crush/mapper.c +++ b/src/crush/mapper.c @@ -354,7 +354,11 @@ static

Re: [PATCH] [ceph spec] package *.py* files

2012-01-19 Thread Alexandre Oliva
On Jan 19, 2012, Holger Macht hma...@suse.de wrote: Alexandre Oliva oliva at lsd.ic.unicamp.br writes: Some post-install rpmbuild defaults byte-compile all packaged python files, so don't bother removing the .pyc files, and package .py* to get both .pyo and .pyc. It wastes a tiny little

[PATCH] [ceph spec] package *.py* files

2012-01-17 Thread Alexandre Oliva
-off-by: Alexandre Oliva ol...@lsd.ic.unicam.br --- ceph.spec.in | 19 +++ 1 files changed, 3 insertions(+), 16 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 3950fd1..d4994b5 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -255,10 +255,6 @@ mkdir -p $RPM_BUILD_ROOT

Re: Recommended btrfs mount options

2011-11-23 Thread Alexandre Oliva
and temporarily, to rebalance metadata and bring btrfs (even with clustered allocation) back to a faster pace without umount. -- 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: ceph-mon blocked error

2011-11-04 Thread Alexandre Oliva
in which ceph.ko is waiting for a response from the mon to complete a sync and release some pages, but mon is waiting for a sync to complete before it will respond. -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi

ceph.spec.in still packages libceph.so in 0.36

2011-10-01 Thread Alexandre Oliva
Package libcephfs.so instead of libceph.so. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br diff --git a/ceph.spec.in b/ceph.spec.in index b655a9f..f87278d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -246,7 +246,7 @@ fi %{_includedir}/rados/crc32c.h %{_includedir}/rbd/librbd.h

[PATCH] Move stat/*.log to the end of logrotate.conf

2011-07-04 Thread Alexandre Oliva
Logrotate ignores entries after a rule that doesn't match any files. Signed-off-by: Alexandre Oliva ol...@lsd.ic.unicamp.br --- src/logrotate.conf | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/logrotate.conf b/src/logrotate.conf index 14bc02c