Commit Graph

11082 Commits

Author SHA1 Message Date
Greg Farnum
5850363db0 mds: Determine if there are file locks based on flockbl size, not dirty cap bit 2010-08-02 10:39:56 -07:00
Greg Farnum
fe0c5119f8 mds: need to size values read from a bufferlist 2010-08-02 10:39:56 -07:00
Greg Farnum
fa058c414c mds: handle file locking in MClientCaps on a reconnect. 2010-08-02 10:39:56 -07:00
Greg Farnum
0d4bfea58c mds: locking. remove ceph_filelock* lists and replace with iter lists
This allows for more efficient deletion of elements.
2010-08-02 10:39:56 -07:00
Greg Farnum
2cfbddc241 mds: Fix ceph_lock_state_t to use uint64_t 2010-08-02 10:39:56 -07:00
Greg Farnum
8dd1960b4e mds: locks. Fix possible naughty dereference, and fix existence checks 2010-08-02 10:39:56 -07:00
Greg Farnum
b443f1300b mds: locking. Keep trap of neighbors and coalesce them 2010-08-02 10:39:56 -07:00
Greg Farnum
df813369d3 mds: locking. remove zero-valued client held/waiting lock counts from the map.
In the unlikely event that you have a very large cluster doing a lot of
locking of different files amongst the whole cluster, this will keep
memory use down.
2010-08-02 10:39:56 -07:00
Greg Farnum
8315b5dbce mds: Move lock print function; add debugging; fix fencepost errors. 2010-08-02 10:39:55 -07:00
Greg Farnum
367ff978d8 ceph_fs: CEPH_LOCK_UNLOCK should have its own bit, for safety 2010-08-02 10:39:55 -07:00
Greg Farnum
cc8454621e mds: use the right size mask for file cap bits 2010-08-02 10:39:55 -07:00
Greg Farnum
c14fa1d546 ceph_fs: Add cap bits for advisory file locks 2010-08-02 10:39:55 -07:00
Greg Farnum
6a3600aeab mds: Remove unnecessary if check.
We already know that head_in exists, or we would have entered the previous
if-block and returned from the function.
2010-08-02 10:39:55 -07:00
Greg Farnum
80412537ee mds: Now actually requeues blocked locks whenever locks are removed. 2010-08-02 10:39:55 -07:00
Greg Farnum
71cf9d6a70 mds: fcntl locks can efficiently remove all locks from one client. 2010-08-02 10:39:55 -07:00
Greg Farnum
cc652fe754 mds: fcntl. Keep track of how many locks/waiting locks each client has. 2010-08-02 10:39:55 -07:00
Greg Farnum
0dbcdd8486 mds: implement look_for_lock, for fcntl F_GETLK-style things 2010-08-02 10:39:55 -07:00
Greg Farnum
5d375ea7cf mds: ceph_filelock and filelock_change need to be explicitly sized 2010-08-02 10:39:55 -07:00
Sage Weil
68e592a895 mds: cleanup 2010-08-02 10:39:55 -07:00
Greg Farnum
4ea76e8df6 mds: Implement file lock message handling. 2010-08-02 10:39:55 -07:00
Greg Farnum
4520fdfa1a mds: add distributed lock support for fcntl/flock support 2010-08-02 10:39:55 -07:00
Greg Farnum
b7b349e2aa mds: fcntl. add proper encoding to ceph_filelock and ceph_lock_state_t 2010-08-02 10:39:55 -07:00
Greg Farnum
18b1d7724c mds: fnctl. finish remove_locks so it'll activate whichever locks it can.
This is lazy but it should work.
2010-08-02 10:39:55 -07:00
Greg Farnum
e41056ac5a mds: fnctl. add get_waiting_overlaps function; fix get_overlapped locks
so that it won't do bad things if there aren't any.
2010-08-02 10:39:55 -07:00
Greg Farnum
1fe8ab34ca mds: fnctl. implement half of remove_lock.
Still need to handle all the waiting_locks and set them if proper.
2010-08-02 10:39:55 -07:00
Greg Farnum
27ff76bd61 mds: fnctl. implement adjust_locks method, with helpers 2010-08-02 10:39:55 -07:00
Greg Farnum
b75fe3b831 mds: fcntl. implement add_lock function
Still need to write some of the helpers
2010-08-02 10:39:55 -07:00
Greg Farnum
f60e20e50a mds: fcntl. add skeleton [add, remove]_lock functions.
Implement helper functions to be used later.
2010-08-02 10:39:55 -07:00
Greg Farnum
aab26ff652 mds: add messenging support for advisory file locking 2010-08-02 10:39:55 -07:00
Greg Farnum
eb3d9b44b5 msg: rename MClientReply::dir_bl to extra_bl. Fix uses 2010-08-02 10:39:55 -07:00
Sage Weil
fd61e1b48f mds: conditionally include flock metadata in MClientReconnect
mds: move flockbl into each reconnect record

Simpler for the client side.

mds: keep old reconnect struct

mds: put flock blob len in ceph_mds_cap_reconnect struct

encode realms the old way
2010-08-02 10:39:54 -07:00
Sage Weil
a11a319785 mds: conditionally include flock metadata in MClientCaps 2010-08-02 10:39:54 -07:00
Sage Weil
6be6c48edb mds: remove size, mtime, atime from cap reconnect 2010-08-02 10:21:45 -07:00
Sage Weil
2136ee7636 mds: make mislinked dentry during replay workaround tolerate directories, too
This should probably all go away when the original bug is fixed!
2010-08-02 09:57:30 -07:00
Sage Weil
67236ae746 move logrotate conf out of debian/ to fix ceph.spec 2010-08-02 09:15:34 -07:00
Wido den Hollander
1d22196426 auth: fix cast 2010-07-31 09:14:21 -07:00
Wido den Hollander
e3721638a2 rgw: Support a loglevel of 0 2010-07-30 17:14:37 -07:00
Sage Weil
309f065254 cauthtool: correct man page sample of minimal fs client caps 2010-07-30 16:35:59 -07:00
Yehuda Sadeh
7153244734 rgw: fix setting acls on the bucket 2010-07-30 16:12:43 -07:00
Sage Weil
b502be7a8d move mkcephfs to /sbin 2010-07-30 12:06:10 -07:00
Sage Weil
7465b5e37d debian: more cleanups
https://code.launchpad.net/~clint-fewbar/review-new-branches/ceph-new-pkg/+merge/31303
2010-07-30 12:05:55 -07:00
Sage Weil
8b8fd7e9c2 auth: define AES iv in common header
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-30 10:24:45 -07:00
Thomas Mueller
325b41a3da add files to .gitignore
add generated files to gitignore.

Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-30 09:19:03 -07:00
Thomas Mueller
bcbad88de1 redirect stdout to /dev/null when reloading
the reload command prints to stdout. example:

# service ceph reload
=== mon.0 ===
Reloading Ceph mon0 on hoe001...kill -1 22197...done
=== osd.0 ===
Reloading Ceph osd0 on hoe001...kill -1 22263...done

"properly" configured systems will send the output by mail to
the administrator - this is not desired in case of successfull
reloading.

Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-30 09:18:54 -07:00
Sage Weil
b72c1bb6e9 monclient: use default port if not specified via -m
Reported-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 15:49:27 -07:00
Sage Weil
728c7669bd mon: we support MONNAMES feature 2010-07-29 13:32:27 -07:00
Sage Weil
9052986fd3 Merge branch 'unstable' into mon-remove
Conflicts:
	src/cmon.cc
	src/include/ceph_fs.h
	src/mon/MonClient.cc
	src/mon/Monitor.cc
2010-07-29 13:24:08 -07:00
Sage Weil
11dc1af176 mon: fix signed/unsigned compile warning 2010-07-29 11:37:17 -07:00
Sage Weil
719aa186dc debian: add update_pbuilder.sh script; don't do it during build 2010-07-29 11:32:19 -07:00
Sage Weil
f3ac22ab17 bump unstable version to v0.22~rc 2010-07-29 09:38:50 -07:00