Greg Farnum
57064765b7
msg: Give MPoolOpReply a bufferlist for reply data
2010-04-23 14:42:48 -07:00
Greg Farnum
503c41e6b1
mon: change the unmanaged snap interface for better distinction of reply codes
...
and snapid numbers.
Of course, this now means that the snapid isn't actually passed
back to the client, but that is about to change.
2010-04-23 14:42:48 -07:00
Greg Farnum
0fb4a6e85a
librados: Set selfmanaged snap functions to use int instead of int64_t, too
2010-04-23 14:42:47 -07:00
Greg Farnum
39817b3df6
librados: add small bit of documentation, fix headers
2010-04-23 14:42:46 -07:00
Greg Farnum
4b0021fbe2
mon: don't crash if a client tries to self-manage managed snaps, or vice versa
2010-04-23 14:42:46 -07:00
Greg Farnum
d1d235e7b2
librados: add functions for client-managed snapshots in all the interfaces
2010-04-23 14:42:46 -07:00
Greg Farnum
5fb4e8fab3
objecter: New functions for client-managed snapshots.
2010-04-23 14:42:45 -07:00
Greg Farnum
eba044ce44
mon: OSDMonitor handles client-managed snapshot requests.
2010-04-23 14:42:45 -07:00
Greg Farnum
ac129d7895
osd: pg_pool_t gets new functions for unmanaged (ie, client-managed) snaps
2010-04-23 14:42:45 -07:00
Greg Farnum
5116700fdc
msg: Add space for snapid in MPoolOp. Reply now uses an int64_t replyCode.
...
This allows space for a full 64-bit snapid to be returned, which is about
to be necessary.
2010-04-23 14:42:45 -07:00
Sage Weil
4fda5f922b
msgr: fix atomic_t test
...
Missed this in merge 50285ecf5c
2010-04-23 14:30:23 -07:00
Sage Weil
5b6cfff36d
Merge branch 'atomic' into unstable
2010-04-23 14:22:41 -07:00
Sage Weil
50285ecf5c
Merge branch 'msgr' into unstable
...
Conflicts:
src/TODO
src/mds/Server.cc
src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.h
src/osd/OSD.cc
2010-04-23 14:22:04 -07:00
Sage Weil
756b251bac
v0.20
2010-04-23 12:10:24 -07:00
Sage Weil
609eaa14ca
mds: skip client snap notification on unlink
...
This is cheating a bit, but should be harmless. Basically, we spit off the
snaprealm when we unlink to keep the hierarchy vs snaprealm invariants
intact. But we don't really care if the client does so, so we skip the
client_snap notifications.
That means the client will leave unlinked inodes in the realm they were
in at the time of unlink. I'm pretty sure that won't cause problems
later.
2010-04-23 11:07:16 -07:00
Sage Weil
7a8daedf00
osd: more useful debugging on repop version, out of order completion
2010-04-22 15:12:58 -07:00
Sage Weil
f502547f45
osd: print a bit more debug info about compat problems
2010-04-22 15:12:58 -07:00
Sage Weil
feca69da56
mds: verify mdsmap compatset on startup
2010-04-22 15:12:58 -07:00
Sage Weil
4d7b2ceb08
mds: add CompatSet to mdsmap
2010-04-22 15:12:58 -07:00
Yehuda Sadeh
bfd962959d
rbd: change rbd header disk format, update protocol version
2010-04-22 14:40:09 -07:00
Sage Weil
e3ef14840a
msgr: never (re)open pipe when sending message directly to Connection*
2010-04-22 13:10:40 -07:00
Sage Weil
763203736a
mdsmap: add separate struct version for extended portion of mdsmap
2010-04-22 12:04:01 -07:00
Sage Weil
d03bddc65f
cauthtool: add --gen-print-key
...
Just generate a random cryptokey and print it out.
2010-04-22 11:43:37 -07:00
Sage Weil
5d2dcce770
auth: take key or file containing key on command line
...
e.g.
ceph --key AQBggdBLCJwLABAAuPVK/qJ3/ySbRvEnJHNJ8w== -s
ceph --keyfile file_with_key -s
ceph -K file_with_key -s
ceph -k keyring.bin -s
2010-04-22 11:39:40 -07:00
Sage Weil
2acb843bd6
cauthtool: always print entire encoded CryptoKey
...
Make cauthtool -l output consistent with what you need to feed to
mount.ceph(8).
2010-04-22 11:27:00 -07:00
Sage Weil
0fc47e267b
msgr: increment connect_seq when STANDBY->CONNECTING
...
Otherwise we get this on the peer:
msg/SimpleMessenger.cc: In function 'int SimpleMessenger::Pipe::accept()':
msg/SimpleMessenger.cc:767: FAILED assert(existing->state == STATE_CONNECTING)
1: (SimpleMessenger::Pipe::accept()+0x14b2) [0x654888]
2: (SimpleMessenger::Pipe::reader()+0x32) [0x65538c]
3: (SimpleMessenger::Pipe::Reader::entry()+0x19) [0x649493]
4: (Thread::_entry_func(void*)+0x20) [0x659b06]
5: /lib/libpthread.so.0 [0x7fcdc782f73a]
6: (clone()+0x6d) [0x7fcdc6a5969d]
NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
2010-04-22 07:37:13 -07:00
Sage Weil
629853516e
Merge remote branch 'origin/mdssnaps' into unstable
2010-04-21 15:28:48 -07:00
Sage Weil
44208739bc
filestore: default to writeahead journal, and no btrfs snaps
...
At least until btrfs snap deletion doesn't require a full commit (i.e. each
commit cycle doesn't do a commit for the snap creation AND another for the
old snap deletion).
2010-04-21 15:23:46 -07:00
Sage Weil
2caf513594
rbdtool: add, use prettybyte_t type
2010-04-21 14:56:35 -07:00
Sage Weil
0cf079ac77
rbdtool: add --info, --resize commands
2010-04-21 14:52:29 -07:00
Sage Weil
f4ef6a938a
auth: make 'admin' the default user
...
We don't create a 'guest' user anyway.
2010-04-21 14:52:15 -07:00
Sage Weil
99ac12b10c
librados: adjust C++ aio completion creation api
2010-04-21 14:24:26 -07:00
Sage Weil
d5c892766d
sample.ceph.conf: add example on writeahead (vs parallel) journal
2010-04-21 14:24:26 -07:00
Sage Weil
f2160f1ab4
osd: create 'rbd' pool
2010-04-21 14:24:20 -07:00
Sage Weil
8478ebedde
debian: require hdparm, recommend btrfs-tools
2010-04-21 10:58:42 -07:00
Sage Weil
d4bf8eefa9
debian: require hdparm, recommend btrfs-tools
2010-04-21 10:58:29 -07:00
Sage Weil
476606f483
mds: always use get_newest_seq (not snap) when doing cow
2010-04-20 16:39:13 -07:00
Sage Weil
327432aead
mds: rename move_to_realm(), add debugging (cleanup)
2010-04-20 16:39:13 -07:00
Sage Weil
c719f4e442
mds: don't cow already cowed dentry
2010-04-20 16:39:13 -07:00
Sage Weil
93058af345
sample.ceph.conf: updated
2010-04-20 16:38:53 -07:00
Sage Weil
ba5a0d1ff6
fetch_config: enable fetching ceph.conf from a remote location
...
fetch_config: always fetch if script exists and is executable
fetch_config: make /etc/ceph/sample.fetch_config +x
Makefile: fix whitespace
2010-04-20 16:38:48 -07:00
Sage Weil
5a5cc18374
osd: don't capture SIGINT/SIGTERM; journal and/or btrfs snaps are sufficient.
...
We used to do this to avoid corrupting the filestore, but since we can now
either roll forward with the writeahead journal OR roll back using btrfs
snaps, this is useless. It wasn't a full solution anyway.
2010-04-20 10:47:10 -07:00
Sage Weil
f7f6daf1d2
auth: less noisy debug
2010-04-20 10:39:23 -07:00
Sage Weil
34d308770f
mds: drop mutation locks
...
Saw this one, but fixed others that appear broken as well:
mds/MDCache.h: In function 'virtual Mutation::~Mutation()':
mds/MDCache.h:115: FAILED assert(pins.empty())
1: (Mutation::~Mutation()+0x46) [0x791716]
2: (MDCache::truncate_inode_logged(CInode*, Mutation*)+0x7b) [0x7bd6b7]
3: (C_MDC_TruncateLogged::finish(int)+0x2c) [0x84100e]
4: (finish_contexts(std::list<Context*, std::allocator<Context*> >&, int)+0x1af) [0x74a807]
5: (Journaler::_finish_flush(int, long, utime_t, bool)+0x873) [0x92ea71]
6: (Journaler::C_Flush::finish(int)+0x43) [0x936503]
7: (Objecter::handle_osd_op_reply(MOSDOpReply*)+0xcf5) [0x8ff00f]
8: (MDS::_dispatch(Message*)+0x1ee0) [0x726372]
9: (MDS::ms_dispatch(Message*)+0x2f) [0x7274b9]
10: (Messenger::ms_deliver_dispatch(Message*)+0x55) [0x719949]
11: (SimpleMessenger::dispatch_entry()+0x4f4) [0x7074b2]
12: (SimpleMessenger::DispatchThread::entry()+0x29) [0x7039d1]
13: (Thread::_entry_func(void*)+0x20) [0x71412e]
14: /lib/libpthread.so.0 [0x7f25474e073a]
15: (clone()+0x6d) [0x7f254670a69d]
2010-04-20 09:58:53 -07:00
Sage Weil
d8f1de5e87
osd: fix snapset loading from _snapdir
...
Another masked variable! In the same block as the last one! Aie.
2010-04-19 20:43:22 -07:00
Sage Weil
1915f2d590
mds: clone dentry for multiversion dir if linkage is changing...
...
...even if the inode itself doesn't need to be cowed. In particular, we
do the pre_cow_old_inode() thing, so it frequently doesn't need to be cowed,
but the dentry does when we are say unlinking a directory or some such.
2010-04-19 20:29:14 -07:00
Sage Weil
07c7873dc9
mds: avoid null deref when hiding .ceph dir
2010-04-19 16:38:53 -07:00
Sage Weil
f9225fe642
mds: xlock dentry versionlock to cleanly avoid projected dn linkage replication issues
2010-04-19 15:37:46 -07:00
Sage Weil
463792de06
reorder locks
2010-04-19 15:36:30 -07:00
Sage Weil
c8d7c970e8
mds: always issue lease mask 1; assume CEPH_LOCK_DN
...
This makes it possible for us to change CEPH_LOCK_DN definition without
breaking the client.
2010-04-19 15:36:21 -07:00