Sage Weil
718d6468e2
xlist: clean up interface
2010-03-12 15:56:53 -08:00
Sage Weil
1c928369d5
dlist: clean up interface
2010-03-12 15:56:53 -08:00
Sage Weil
e092710f09
mds: use elist instead of dlist
2010-03-12 15:56:50 -08:00
Sage Weil
c1e8d37dec
elist: simpler embedded list
...
This is more or less equivalent to the linux kernel list_head:
each embedded item struct has only a next and prev pointer. As
long as the same member item is always used, at a fixed offset
from the containing class, we can go from an item to a contained
class.
The offset can either be passed to the list (head) constructor,
or to the begin(), front(), back() members explicitly.
Iterator has 3 modes.. current (list_for_each), cache_next
(list_for_each_safe), and magic (uses cached next iff current is
empty). Magic will work most of the time... as long as we don't
re-add ourselves to a different list inside the iterator loop.
(Note that if we do, we will iterator up to the other list's
head, not detect it is a head, an get an invalid pointer and
crash.)
elist: add to makefile
elist: require offset for cosntructor
elist: fix pop_front/back
2010-03-12 15:56:47 -08:00
Sage Weil
24b0f030c2
xlist: clean up users
2010-03-12 09:01:53 -08:00
Sage Weil
1278e48776
mds: use dlist instead of xlist for main cache objects
2010-03-12 09:01:53 -08:00
Sage Weil
ebc8336ac6
dlist: simpler version of xlist without _list pointer
2010-03-12 09:01:53 -08:00
Sage Weil
75e44d3444
mds: reduce MDSCacheObject footprint a bit
...
Save 8 bytes. Whoop.
2010-03-12 09:01:53 -08:00
Sage Weil
5a9a50c648
mds: replica_nonce can wrap; fix asserts
2010-03-12 09:01:53 -08:00
Sage Weil
7f19ee1ac3
mds: put rare state in more_bits_t in ScatterLock
...
Saves 48 bytes per ScatterLock, 144 bytes per CInode.
2010-03-12 09:01:53 -08:00
Sage Weil
b8e4afa55c
mds: show xlist overhead
2010-03-12 09:01:53 -08:00
Sage Weil
580cf8379f
mds: move unstable SimpleLock state into separate struct
...
Allocated as needed, freed when lock returns to stable state.
Also make remaining int fields a bit smaller.
2010-03-12 09:01:50 -08:00
Sage Weil
9cfd98da04
mds: simplify LocalLock wrlock methods
2010-03-11 09:57:36 -08:00
Sage Weil
de8a55e500
mds: add locallock statemachine
...
This is just for consistency; it's trivial. We lost the get_sm()
pointer test, though.
2010-03-11 09:41:30 -08:00
Sage Weil
019c0522f0
synclient: print mount error
2010-03-11 09:40:09 -08:00
Sage Weil
7f0791c2e2
mds: create abstract LockType that includes numeric type and state machine
...
This eliminates 1 field in each SimpleLock.
2010-03-11 09:30:10 -08:00
Sage Weil
cbd6b2fcfb
debian: build binary-arch debs only from builddebs.sh
...
Otherwise we rebuild the source .dsc, which isn't what we want.
2010-03-11 09:06:55 -08:00
Sage Weil
d2e637486e
debian: clean out unused debhelper rules steps
2010-03-11 09:06:55 -08:00
Sage Weil
debaa52086
debian: put debian/ in .diff.gz, not release tarball
2010-03-11 09:06:55 -08:00
Sage Weil
4fdb6ce34a
msgr: remove dead kill_after code bits
2010-03-11 09:06:55 -08:00
Sage Weil
71cfe307db
todo multi-mds issue
2010-03-11 09:06:55 -08:00
Greg Farnum
ff887e24aa
mon: users can now change pool owners.
...
This requires them to have write permission on both the current
and the new auid.
2010-03-10 13:22:02 -08:00
Greg Farnum
543c9eb460
osd: Check auid permissions in get_pool_cap
2010-03-10 13:22:02 -08:00
Greg Farnum
fd3168a301
mon: use MonCaps::check_privileges in prepare_new_pool
2010-03-10 13:22:02 -08:00
Greg Farnum
53029941ba
Revert "mon: add check_privileges function to OSDMon."
...
Deprecated by the existence of MonCaps::check_privileges
This reverts commit 07df67f394
.
2010-03-10 13:22:02 -08:00
Greg Farnum
e59f544afd
mon: add check_privileges function to MonCaps
2010-03-10 13:22:02 -08:00
Greg Farnum
a9b15cc162
vstart: use 'allow *' notation instead of 'allow rwx'
2010-03-10 13:22:02 -08:00
Greg Farnum
9b3786f6c4
osd: accept 'allow *' as an admin flag that sets allow_all
...
in the OSDCap.
2010-03-10 13:22:02 -08:00
Greg Farnum
9a8dd4f82b
osd: OSDCaps parses and stores auid permissions
2010-03-10 13:22:02 -08:00
Greg Farnum
719c13aa5a
mon: AuthMonitor doesn't overwrite allow_all bit
...
on incoming messages, only on initial connect.
2010-03-10 13:22:02 -08:00
Greg Farnum
efcd0d893e
mon: Add basic operator<< to MonCaps
2010-03-10 13:22:02 -08:00
Greg Farnum
c6e7495454
mon: Accept 'allow *' as an admin flag that sets allow_all
...
in MonCaps.
2010-03-10 13:22:02 -08:00
Greg Farnum
55ace062fd
mon: MonCaps parses and stores auid permissions
...
Also, rename MonServiceCap -> MonCap
2010-03-10 13:22:02 -08:00
Sage Weil
e4e775b60f
thread: mask all signals on child threads
...
Mask all signals on any threads we create. Since we don't use
signals for anything, this leaves the signal behavior to the
original parent thread or process linking in librados or
libceph.
2010-03-09 15:02:30 -08:00
Sage Weil
e976c53607
timer: kill unused g_timer
2010-03-09 14:51:05 -08:00
Sage Weil
fe4f42bc29
mds: create mds.$id debug log symlink
...
...in addition to the current mds$num
2010-03-09 14:05:52 -08:00
Sage Weil
72e04c8f6a
mds: only check for canceled _client_ requests, not slaves
...
Slave requests don't get added to the session request list.
2010-03-09 11:00:03 -08:00
Sage Weil
233d2d8087
mds: fix MDentryUnlink
...
Need to replicate mds dir + stray dir dentry as well as the stray
inode, dir, dentry. This was overlooked when the /.ceph and
per-mds directories were set up.
2010-03-09 10:41:42 -08:00
Yehuda Sadeh
cf4414684d
messenger: don't use signal SIGUSRx anymore
...
Was used internally to wake up blocking messenger threads.
2010-03-08 15:34:24 -08:00
Sage Weil
a7ae330d22
qa: make -j on kernel build
2010-03-08 15:10:45 -08:00
Sage Weil
c9506f71ad
Revert "mon: Hack -- set allow_all in caps if client name is admin"
...
This reverts commit f07ce468e5
.
2010-03-08 15:10:14 -08:00
Sage Weil
e0c3c15e2b
mds: note when we last became non-laggy
2010-03-08 14:51:24 -08:00
Sage Weil
0383878c4f
mkcephfs: cosd mkfs as root, then chown
2010-03-08 14:51:24 -08:00
Sage Weil
d77caf22a6
todo bugs
2010-03-08 14:51:24 -08:00
Sage Weil
822ae4a1bb
filestore: clean up btrfs, clone range detection
...
Use statfs to detect btrfs, not the trans ioctl (which won't work
if you're not root!). Use separate bool for clone range support.
2010-03-08 14:51:24 -08:00
Sage Weil
ca02d68cc6
cauthtool: verify set_uid arg
2010-03-08 14:51:23 -08:00
Sage Weil
dc38d48948
mds: dump misc struct sizes to log
2010-03-08 14:51:20 -08:00
Sage Weil
9c8eef20b0
monclient: time out properly from wait_auth_rotating
2010-03-08 14:49:43 -08:00
Sage Weil
fb5ecb9be9
decay: separate fixed DecayRate from DecayCounter
...
Avoid eating a double per instance.
2010-03-08 14:49:43 -08:00
Sage Weil
fdb85cad0d
mds: drop useless double from DecayCounter
...
No need to store k AND halflife.
2010-03-08 14:49:43 -08:00