Commit Graph

5840 Commits

Author SHA1 Message Date
Sage Weil
4bab554b90 kclient: fix fmode ref count buf
We weren't taking an fmode reference on the root dir.  This would
cause a WARN if our root caps were allowed to expire and we had
to ropen them.  Duplicated wonky r_fmode conditional from later
fill_inode() call in fill_trace().
2009-03-03 14:26:28 -08:00
Sage Weil
93ef8a3667 kclient: wake up i_cap_wq in ceph_add_cap
We could a thread blocked on caps when we are issued a new cap in
another thread.  They need to be woken up.
2009-03-03 12:28:11 -08:00
Sage Weil
e508fb2ee3 kclient: check d_inode before clearing its COMPLETE flag. 2009-03-03 12:27:31 -08:00
Sage Weil
6f48094e5c mds: fix try_remove_unlinked_dn
Just because a dir is_complete() doesn't mean that we can safely
do away with a null dentry.  What matters is if the dentry existed
before the last commit.. and having everything in our cache isn't
relevant at all there.  If we are complete, a fetch() would be a
no-op, but since we can clear complete at any time, that's not
helpful.
2009-03-03 12:25:58 -08:00
Sage Weil
ff2a6f6b96 kclient: do not return new null dentry from lookup
The VFS doesn't appear to like it when lookup returns a replacement
dentry that is null... it BUGs on unmount with a ref count that is
still 1.

So, if we get ENOENT and no trace, return ERR_PTR(-ENOENT) instead.
2009-03-03 11:43:47 -08:00
Sage Weil
fcbbe9ab2a cfuse: fix startup 2009-03-03 11:33:42 -08:00
Yehuda Sadeh
4a5dbb700a conf: some cleanup 2009-03-03 10:43:35 -08:00
Yehuda Sadeh
b0b561603a conf: some more fixes (again) 2009-03-03 10:41:21 -08:00
Yehuda Sadeh
4570354050 conf: fix typo 2009-03-03 10:40:15 -08:00
Sage Weil
212cb785f8 mds: clean up auth_pin nesting code a bit 2009-03-03 10:42:21 -08:00
Sage Weil
ea1962ef1e mkcephfs: take optional crush map on command line 2009-03-03 10:42:21 -08:00
Yehuda Sadeh
95bfdd784d conf: lockdep again 2009-03-03 10:37:29 -08:00
Yehuda Sadeh
88334c2646 conf: fix some other errors 2009-03-03 10:17:13 -08:00
Yehuda Sadeh
ad13632d5b conf: the return of --lockdep, other fixes 2009-03-03 10:14:17 -08:00
Yehuda Sadeh
6fdcf7421f config: some cleanup 2009-03-03 10:06:42 -08:00
Sage Weil
2f3a19e9fd debian: fix dependencies 2009-03-03 09:32:23 -08:00
Yehuda Sadeh
d9f8db2572 conf: fix erronous scoping 2009-03-02 17:19:47 -08:00
Yehuda Sadeh
0fc4a23e3f conf: moved options to the preparse section 2009-03-02 17:12:35 -08:00
Yehuda Sadeh
13b1141e81 Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable 2009-03-02 17:05:23 -08:00
Yehuda Sadeh
3a116a0681 conf: added old remarks 2009-03-02 17:05:08 -08:00
Sage Weil
c99ecb9365 config: remove 'debug_after' cruft 2009-03-02 16:56:45 -08:00
Yehuda Sadeh
a7ee341c63 conf: removed some more old stuff 2009-03-02 16:40:11 -08:00
Yehuda Sadeh
8a6138542a conf: remove old stuff 2009-03-02 16:37:56 -08:00
Sage Weil
69b7578567 kclient: revamp async truncation
We can learn about truncations from an mds reply or from a TRUNC
cap message.  Set up the async truncation in the generic
ceph_fill_file_size helper.  Remove old crufty async trunc code
(that assumed TRUNC would come before an ltruncate reply).
2009-03-02 16:38:15 -08:00
Sage Weil
e518e4a146 mds: flush log on wrlock_start if lock isn't stable 2009-03-02 16:38:15 -08:00
Sage Weil
fc72a5a21f mds: flush mdlog on max_size increase
Presumably a writer is waiting for it.
2009-03-02 16:38:15 -08:00
Sage Weil
648349d195 mds: only issue cap TRUNC if truncating smaller 2009-03-02 16:38:15 -08:00
Sage Weil
97e2071333 filestore: more helpful error message with xattrs don't work 2009-03-02 16:38:15 -08:00
Sage Weil
2ac56cc0ec sample.cluster.conf: fix mon path/osd dev option names 2009-03-02 16:38:15 -08:00
Sage Weil
41a5e984b0 mds: fix truncate bug
Use consistent conditional value to determine whether it is a
forward truncation or not.  Otherwise we get out of sync before vs
after journaling...
2009-03-02 16:38:15 -08:00
Yehuda Sadeh
4c1f314453 conf: fixed issue with deleted conf options 2009-03-02 16:26:29 -08:00
Yehuda Sadeh
371be37755 Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable 2009-03-02 16:26:14 -08:00
Yehuda Sadeh
13d874f653 conf: added all the conf options 2009-03-02 16:20:28 -08:00
Yehuda Sadeh
b971b9c3aa conf: revised cmd line parsing and conf reading
still need to set all the default initialization
2009-03-02 14:38:57 -08:00
Sage Weil
5f02f824ab kclient: make sure we cleanup in all error paths 2009-03-02 14:16:46 -08:00
Sage Weil
b026ec85d5 kclient: make statfs() cleanup when interrupted
Statfs() needs to remove itself from the request tree when
completed or canceled.  Otherwise, we end up with request
pointers to bad locations on the stack.  Fixes crash from
dbench after control-c.
2009-03-02 14:14:48 -08:00
Sage Weil
911ca615c4 kclient: remove /proc cruft 2009-03-02 13:48:58 -08:00
Sage Weil
3af9ad46ed kclient: remove old client_list cruft 2009-03-02 13:48:40 -08:00
Sage Weil
d4dbed6ebc Revert "kclient: fix __grab_cache_page #if"
This reverts commit 220b116bfd.

Linux commit 54566b2c1594c2326a645a3551f9d989f7ba3c5e falls between
v2.6.28 and v2.6.29-rc1, so this #if should be 2.6.29.
2009-03-02 13:45:40 -08:00
Sage Weil
3e0fd1647f vstart: fix conf, use -d on startup, etc. 2009-03-02 13:36:01 -08:00
Sage Weil
96e0f59f56 debian: restructure packages
Consolidate.  Fix dependencies.
2009-03-02 13:25:00 -08:00
Sage Weil
7f26fda312 todos, changelog 2009-03-02 12:37:49 -08:00
Sage Weil
220b116bfd kclient: fix __grab_cache_page #if
2.6.28, not .29
2009-03-02 12:37:19 -08:00
Sage Weil
f27c792741 initscripts: clean out old scripts 2009-03-02 11:11:23 -08:00
Sage Weil
1d0e25a5e0 initscripts: rename ceph-daemons init-ceph
My real motivation is just to be able to type './i<tab>' instead of
'./ce<tab>-<tab>'.
2009-03-02 11:11:20 -08:00
Sage Weil
2e2cf34989 initscripts: add 'killall' command 2009-03-02 11:10:07 -08:00
Sage Weil
36f224c846 cosd: rename conf file 2009-03-02 11:10:04 -08:00
Sage Weil
5aa9cc95e0 initscripts: fix stop_daemon; add 'forcestop' command 2009-03-02 11:10:03 -08:00
Sage Weil
0c17cc4a5e initscripts: add 'cleanlogs' and 'cleanalllogs' options 2009-03-02 11:10:03 -08:00
Sage Weil
67bf2bf9b2 initscripts: ensure cluster.conf exists 2009-03-02 11:10:00 -08:00