]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 years agorbdtool: use canonical image name (pool/image)
Yehuda Sadeh [Fri, 9 Jul 2010 21:15:06 +0000 (14:15 -0700)]
rbdtool: use canonical image name (pool/image)

15 years agorbdtool: can read data using snapshot
Yehuda Sadeh [Fri, 9 Jul 2010 20:46:28 +0000 (13:46 -0700)]
rbdtool: can read data using snapshot

15 years agomds: fix up snap cap issue logic comments
Sage Weil [Fri, 9 Jul 2010 17:39:11 +0000 (10:39 -0700)]
mds: fix up snap cap issue logic comments

15 years agomds: fix acquire_lock() calls in handle_client_open()
Sage Weil [Fri, 9 Jul 2010 17:34:53 +0000 (10:34 -0700)]
mds: fix acquire_lock() calls in handle_client_open()

We want to acquire_locks exactly once per path through the function.
Don't look at mdr->* yet if we haven't locked yet.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: issue all snap_caps allowed given locks, not by current cap
Sage Weil [Fri, 9 Jul 2010 17:32:25 +0000 (10:32 -0700)]
mds: issue all snap_caps allowed given locks, not by current cap

For snap_caps, who cares if the live inode has a cap for this client.  We
always want to issue the maximum set of caps the inode locks allow for
a live inode or snapped inode with caps, or the max caps ever for a snapped
inode without caps.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agofix FCGI detection and specfile
Christian Brunner [Fri, 9 Jul 2010 20:43:42 +0000 (22:43 +0200)]
fix FCGI detection and specfile

configure is building radosgw as soon as libfcgi is installed, even
if --without-radosgw is given. Here is a fix for configure.in and the
specfile.

Regards,
Christian

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomon: avoid OOB m->cmd access in auth proprocess_command
Sage Weil [Fri, 9 Jul 2010 20:14:25 +0000 (13:14 -0700)]
mon: avoid OOB m->cmd access in auth proprocess_command

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomsgr: brackets (not braces) for ipv6 addrs
Sage Weil [Fri, 9 Jul 2010 18:15:55 +0000 (11:15 -0700)]
msgr: brackets (not braces) for ipv6 addrs

Sigh

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebug: only truncate log file on open if log_per_instance is set
Sage Weil [Fri, 9 Jul 2010 17:45:49 +0000 (10:45 -0700)]
debug: only truncate log file on open if log_per_instance is set

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: termiante client sessions before flushign log during shutdown
Sage Weil [Fri, 9 Jul 2010 17:09:53 +0000 (10:09 -0700)]
mds: termiante client sessions before flushign log during shutdown

We need to close out client sessions, and caps, to empty the open_files
lists, so that we can properly trim the EOpen events from the log.

This fixes a crash like so:

mds/journal.cc: In function 'C_Gather* LogSegment::try_to_expire(MDS*)':
mds/journal.cc:160: FAILED assert(ls != this)
 1: (LogSegment::try_to_expire(MDS*)+0x11c1) [0x90a1df]
 2: (MDLog::try_expire(LogSegment*)+0x2d) [0x902c25]
 3: (MDLog::trim(int)+0x55b) [0x902b0b]
 4: (MDCache::shutdown_pass()+0xeb) [0x7d6aab]
 5: (MDS::_dispatch(Message*)+0x2dc1) [0x71597f]
 6: (MDS::ms_dispatch(Message*)+0x38) [0x712a44]
 7: (Messenger::ms_deliver_dispatch(Message*)+0x63) [0x6fe07b]
 8: (SimpleMessenger::dispatch_entry()+0x5fd) [0x6ef7e7]
 9: (SimpleMessenger::DispatchThread::entry()+0x2c) [0x6e44b8]
 10: (Thread::_entry_func(void*)+0x23) [0x6fd075]
 11: /lib64/libpthread.so.0() [0x3552e06a3a]
 12: (clone()+0x6d) [0x35526ddf3d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is
needed to interpret this.

Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: create /var/log/ceph directory
Christian Brunner [Fri, 9 Jul 2010 14:01:47 +0000 (16:01 +0200)]
ceph.spec.in: create /var/log/ceph directory

I've missed this one in my previous patch series.

Regards,
Christian

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: add a build option for radosgw (--with radosgw)
Christian Brunner [Fri, 9 Jul 2010 09:13:04 +0000 (11:13 +0200)]
ceph.spec.in: add a build option for radosgw (--with radosgw)

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: add /var/lib/ceph/
Christian Brunner [Fri, 9 Jul 2010 09:12:39 +0000 (11:12 +0200)]
ceph.spec.in: add /var/lib/ceph/

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: add logrotate configuration
Christian Brunner [Fri, 9 Jul 2010 09:12:16 +0000 (11:12 +0200)]
ceph.spec.in: add logrotate configuration

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: set correct path for rbd classes
Christian Brunner [Fri, 9 Jul 2010 09:11:49 +0000 (11:11 +0200)]
ceph.spec.in: set correct path for rbd classes

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: print debug write before adding to transaction
Sage Weil [Thu, 8 Jul 2010 22:41:32 +0000 (15:41 -0700)]
osd: print debug write before adding to transaction

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomsgr: return error and dethrottle if message decode fails
Sage Weil [Thu, 8 Jul 2010 21:55:53 +0000 (14:55 -0700)]
msgr: return error and dethrottle if message decode fails

This was broken by the addition of the throttling stuff.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: make helper scripts remember most recent release
Sage Weil [Thu, 8 Jul 2010 21:27:57 +0000 (14:27 -0700)]
debian: make helper scripts remember most recent release

So you don't have to cut&paste it on the command line

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: fix delayed pg creation use after free
Sage Weil [Thu, 8 Jul 2010 20:34:15 +0000 (13:34 -0700)]
osd: fix delayed pg creation use after free

Use local acting[], not the one stashed in creating_pgs[pgid].  And drop
the duplication .erase().

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agovstart: specify osd class tmp dir
Sage Weil [Thu, 8 Jul 2010 18:34:48 +0000 (11:34 -0700)]
vstart: specify osd class tmp dir

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomonc: make hunt, ping rates configuration
Sage Weil [Thu, 8 Jul 2010 17:56:32 +0000 (10:56 -0700)]
monc: make hunt, ping rates configuration

3s for hunt rate, 10s for ping rate.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: increase client mount timeout
Sage Weil [Thu, 8 Jul 2010 17:49:51 +0000 (10:49 -0700)]
client: increase client mount timeout

This needs to be longer than the monclient hunt rate (currently 10s) so
that we succeed if we initially pick a down monitor.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agofilestore: improve lseek64 error checking, and use buffer::list::write_fd()
Sage Weil [Thu, 8 Jul 2010 17:14:23 +0000 (10:14 -0700)]
filestore: improve lseek64 error checking, and use buffer::list::write_fd()

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agobuffer: make write_fd() const
Sage Weil [Thu, 8 Jul 2010 17:09:21 +0000 (10:09 -0700)]
buffer: make write_fd() const

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomount.ceph: handle ipv6 addrs, colons, braces
Sage Weil [Thu, 8 Jul 2010 16:49:50 +0000 (09:49 -0700)]
mount.ceph: handle ipv6 addrs, colons, braces

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec: require libedit
Sage Weil [Thu, 8 Jul 2010 15:38:54 +0000 (08:38 -0700)]
ceph.spec: require libedit

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: require binutils
Sage Weil [Thu, 8 Jul 2010 15:36:46 +0000 (08:36 -0700)]
ceph.spec.in: require binutils

cclass needs /usr/bin/nm

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: require binutils
Sage Weil [Thu, 8 Jul 2010 15:33:40 +0000 (08:33 -0700)]
debian: require binutils

cclass needs 'nm' to extract symbols from rados classes.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: explicit postinst/postrm for shlibs
Sage Weil [Wed, 7 Jul 2010 23:43:44 +0000 (16:43 -0700)]
debian: explicit postinst/postrm for shlibs

The dh_shlibdeps sees the .so in 'ceph' and incorrectly adds ldconfig to
postinst and postrm.  Which is useless and upsets lintian.  So do our
postinst/postrm magic explicitly.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agorbdtool: fix export
Sage Weil [Wed, 7 Jul 2010 23:34:27 +0000 (16:34 -0700)]
rbdtool: fix export

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomon: create new pools using rjenkins hash
Sage Weil [Wed, 7 Jul 2010 23:02:58 +0000 (16:02 -0700)]
mon: create new pools using rjenkins hash

Otherwise they get -1, which always maps to an invalid (-1) pgid.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agorbdtool: should support files larger than 2GB
Yehuda Sadeh [Wed, 7 Jul 2010 23:55:07 +0000 (16:55 -0700)]
rbdtool: should support files larger than 2GB

15 years agodebian: _do_ strip cosd
Sage Weil [Wed, 7 Jul 2010 22:49:29 +0000 (15:49 -0700)]
debian: _do_ strip cosd

15 years agoclass: make class tmp directory configurable, not /tmp
Sage Weil [Wed, 7 Jul 2010 22:04:33 +0000 (15:04 -0700)]
class: make class tmp directory configurable, not /tmp

/tmp usually gets mounted with 'noexec', making it a poor choice.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agologger: shut up
Sage Weil [Wed, 7 Jul 2010 21:41:15 +0000 (14:41 -0700)]
logger: shut up

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoconfig: can use '-' as a config option
Yehuda Sadeh [Wed, 7 Jul 2010 21:59:44 +0000 (14:59 -0700)]
config: can use '-' as a config option

15 years agomsgr: remove fake orig_source_addr fakery
Sage Weil [Wed, 7 Jul 2010 21:33:33 +0000 (14:33 -0700)]
msgr: remove fake orig_source_addr fakery

This makes get_orig_*() match get_*().

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomon: fix message forwarding to use Connection to fake source addr
Sage Weil [Wed, 7 Jul 2010 21:32:48 +0000 (14:32 -0700)]
mon: fix message forwarding to use Connection to fake source addr

This make get_source_addr() work (not just get_orig_source_addr()).

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: do not strip cosd
Sage Weil [Wed, 7 Jul 2010 17:23:56 +0000 (10:23 -0700)]
debian: do not strip cosd

15 years agoclasshandler: print error when dlopen fails
Sage Weil [Wed, 7 Jul 2010 17:24:05 +0000 (10:24 -0700)]
classhandler: print error when dlopen fails

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph: drop version from ceph_fs.h, use autoconf VERSION macro instead
Sage Weil [Wed, 7 Jul 2010 15:24:13 +0000 (08:24 -0700)]
ceph: drop version from ceph_fs.h, use autoconf VERSION macro instead

There's no reason to define this in the code anymore.  Since the kernel
side doesn't use it it just confuses matters.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoshell script fixes
Fred Ar [Wed, 7 Jul 2010 14:47:57 +0000 (07:47 -0700)]
shell script fixes

15 years agomds: fix logger init on startup, rank symlink creation
Sage Weil [Wed, 7 Jul 2010 14:38:55 +0000 (07:38 -0700)]
mds: fix logger init on startup, rank symlink creation

Busted by 83d1ea6636dd432dcbb6a0c6046d551bee7be5c6.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: do not strip rados classes
Sage Weil [Tue, 6 Jul 2010 23:47:36 +0000 (16:47 -0700)]
debian: do not strip rados classes

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: add postinst, postrm for ceph package
Sage Weil [Tue, 6 Jul 2010 23:40:44 +0000 (16:40 -0700)]
debian: add postinst, postrm for ceph package

This will keep debain from using the default, which thinks it needs to run
ldconfig.  Which it doesn't.

15 years agoMakefile: cleanup
Sage Weil [Tue, 6 Jul 2010 23:20:07 +0000 (16:20 -0700)]
Makefile: cleanup

15 years agodebian: put rbd classes in ceph, not librados1 package
Sage Weil [Tue, 6 Jul 2010 23:13:44 +0000 (16:13 -0700)]
debian: put rbd classes in ceph, not librados1 package

The cluster classes are a server-side thing, not client lib thing.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: consolidate osd stats in _refresh_my_stats
Sage Weil [Tue, 6 Jul 2010 23:08:47 +0000 (16:08 -0700)]
osd: consolidate osd stats in _refresh_my_stats

Also keep local copy of osd_stat (send with pg stats update to monitor).

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: include rados-classes
Sage Weil [Tue, 6 Jul 2010 23:05:43 +0000 (16:05 -0700)]
debian: include rados-classes

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agocclass: $libdir/rados-classes
Sage Weil [Tue, 6 Jul 2010 22:56:11 +0000 (15:56 -0700)]
cclass: $libdir/rados-classes

15 years agologger: huge rewrite, cleanup
Sage Weil [Wed, 7 Jul 2010 04:12:33 +0000 (21:12 -0700)]
logger: huge rewrite, cleanup

- name *.log
- name after name, not rank
- reopen on sighup
- remove pointer on shutdown
- clean up interface
- implement reset (truncate/reopen file)
- rotate logs

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoauth: rename supported_auth -> auth_supported
Sage Weil [Mon, 5 Jul 2010 23:23:42 +0000 (16:23 -0700)]
auth: rename supported_auth -> auth_supported

It should be 'auth supported' for naming consistency.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: handle_client_session now careful opening mds sessions while unmounting
Greg Farnum [Tue, 6 Jul 2010 22:12:06 +0000 (15:12 -0700)]
client: handle_client_session now careful opening mds sessions while unmounting

15 years agoclient: put MDSSession pointers in the msd_session map, rather than the sessions...
Greg Farnum [Tue, 6 Jul 2010 20:44:38 +0000 (13:44 -0700)]
client: put MDSSession pointers in the msd_session map, rather than the sessions themselves.
This is a bit cleaner and clears the way to make it more closely mimic the kernel.

15 years agopaxos: send summary if observer has fallen behind first_committed
Sage Weil [Mon, 5 Jul 2010 17:27:11 +0000 (10:27 -0700)]
paxos: send summary if observer has fallen behind first_committed

This avoids a ceph crash like

mon/PGMap.h: In function 'void PGMap::apply_incremental(PGMap::Incremental&)':
mon/PGMap.h:77: FAILED assert(inc.version == version+1)
 1: (PGMap::apply_incremental(PGMap::Incremental&)+0x50) [0x5a5f22]
 2: (handle_notify(MMonObserveNotify*)+0x2c7) [0x567c53]
 3: (Admin::ms_dispatch(Message*)+0x52) [0x5aa042]
 4: (Messenger::ms_deliver_dispatch(Message*)+0x55) [0x5be389]
 5: (SimpleMessenger::dispatch_entry()+0x50f) [0x5ad3fb]
 6: (SimpleMessenger::DispatchThread::entry()+0x29) [0x597323]
 7: (Thread::_entry_func(void*)+0x20) [0x5b91c8]
 8: /lib/libpthread.so.0 [0x7f31185fd73a]
 9: (clone()+0x6d) [0x7f311782769d]

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomsgr: immediately drop messages with null dest
Sage Weil [Mon, 5 Jul 2010 16:34:29 +0000 (09:34 -0700)]
msgr: immediately drop messages with null dest

This avoids spawning a new pipe and then failing to connect to a bad
address.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: fix handle_dentry_unlink to handle remote unlink (no straydn)
Sage Weil [Tue, 6 Jul 2010 21:48:37 +0000 (14:48 -0700)]
mds: fix handle_dentry_unlink to handle remote unlink (no straydn)

The straydn is optional, and NULL if we're unlinking a remote dentry.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: be less noisy about memory usage in log
Sage Weil [Tue, 6 Jul 2010 21:34:04 +0000 (14:34 -0700)]
mds: be less noisy about memory usage in log

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph: --in-file, not --in-data
Sage Weil [Tue, 6 Jul 2010 20:02:09 +0000 (13:02 -0700)]
ceph: --in-file, not --in-data

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: track pg_num by type in logger
Sage Weil [Tue, 6 Jul 2010 19:47:19 +0000 (12:47 -0700)]
osd: track pg_num by type in logger

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agolibrados: add pool set_snap_context
Sage Weil [Tue, 6 Jul 2010 19:27:23 +0000 (12:27 -0700)]
librados: add pool set_snap_context

Set the snap context for a given pool handle.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: take the first inode as root, rather than whatever comes out
Greg Farnum [Tue, 6 Jul 2010 19:02:18 +0000 (12:02 -0700)]
client: take the first inode as root, rather than whatever comes out
with ino=1.

Also, translate root inode properly in fuse_ll.

15 years agoceph.spec: install /etc/logrotate.d/ceph
Sage Weil [Tue, 6 Jul 2010 18:53:11 +0000 (11:53 -0700)]
ceph.spec: install /etc/logrotate.d/ceph

15 years agoosd: document some of the logger stats
Sage Weil [Tue, 6 Jul 2010 17:53:41 +0000 (10:53 -0700)]
osd: document some of the logger stats

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agorbdtool: modify usage
Yehuda Sadeh [Tue, 6 Jul 2010 17:58:57 +0000 (10:58 -0700)]
rbdtool: modify usage

15 years agoconfig: allow optional parameters
Yehuda Sadeh [Tue, 6 Jul 2010 17:58:19 +0000 (10:58 -0700)]
config: allow optional parameters

15 years agomds: do not include snapped inodes in EOpen or LogSegment::open_files
Sage Weil [Tue, 6 Jul 2010 17:24:47 +0000 (10:24 -0700)]
mds: do not include snapped inodes in EOpen or LogSegment::open_files

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: print useful error on malformed EOpen event
Sage Weil [Tue, 6 Jul 2010 17:13:58 +0000 (10:13 -0700)]
mds: print useful error on malformed EOpen event

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoMakefile: drop unnecessary dist-hook for make_version
Sage Weil [Mon, 5 Jul 2010 23:03:30 +0000 (16:03 -0700)]
Makefile: drop unnecessary dist-hook for make_version

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: simplify release.sh
Sage Weil [Mon, 5 Jul 2010 23:02:28 +0000 (16:02 -0700)]
debian: simplify release.sh

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoMakefile: distribute check_version
Sage Weil [Mon, 5 Jul 2010 23:01:16 +0000 (16:01 -0700)]
Makefile: distribute check_version

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoradosgw: fix usage syntax
Yehuda Sadeh [Tue, 6 Jul 2010 17:22:41 +0000 (10:22 -0700)]
radosgw: fix usage syntax

That fixes bug #256.

15 years agomount.ceph: ignore noauto, _netdev options
Sage Weil [Mon, 5 Jul 2010 18:54:11 +0000 (11:54 -0700)]
mount.ceph: ignore noauto, _netdev options

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: include libcls_rbd.so.*
Fred Ar [Mon, 5 Jul 2010 15:58:54 +0000 (08:58 -0700)]
debian: include libcls_rbd.so.*

Signed-off-by: Fred Ar <ar.fred@yahoo.com>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agocclsinfo: fixes for dash
Fred Ar [Mon, 5 Jul 2010 15:57:53 +0000 (08:57 -0700)]
cclsinfo: fixes for dash

Signed-off-by: Fred Ar <ar.fred@yahoo.com>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoceph.spec.in: make -j and unpackaged files
Thomas Mueller [Mon, 5 Jul 2010 07:10:01 +0000 (07:10 +0000)]
ceph.spec.in: make -j and unpackaged files

* now that make -j<numprocs> works out of the box, add it to the spec
* added new unpackaged files
* the test binaries get installed with "--without-debug". omitting
"--without-debug" fixes the problem.

Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoMakefile: fix up ceph_ver.h autogeneration
Sage Weil [Sun, 4 Jul 2010 21:28:18 +0000 (14:28 -0700)]
Makefile: fix up ceph_ver.h autogeneration

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoMakefile: fix build when WITH_DEBUG not set
Sage Weil [Sun, 4 Jul 2010 21:08:15 +0000 (14:08 -0700)]
Makefile: fix build when WITH_DEBUG not set

Signed-off-by: Fred Ar <ar.fred@yahoo.com>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebug: don't create rank symlink if log-file
Sage Weil [Sat, 3 Jul 2010 04:29:22 +0000 (21:29 -0700)]
debug: don't create rank symlink if log-file

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: update ctime on setattr(no mask)
Sage Weil [Sat, 3 Jul 2010 04:28:56 +0000 (21:28 -0700)]
client: update ctime on setattr(no mask)

This makes pjd happy (chown -1 -1 should bump ctime, apparently).  The
kclient does the same trick: dirty any excl caps we have, otherwise do an
mds setattr(ctime) request.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: return errors from setattr
Sage Weil [Fri, 2 Jul 2010 23:47:23 +0000 (16:47 -0700)]
client: return errors from setattr

Otherwise fuse just gets confused because the stat structure isn't filled
in and generates its own EIO.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: fix lookup error codes
Sage Weil [Fri, 2 Jul 2010 23:38:04 +0000 (16:38 -0700)]
client: fix lookup error codes

The fuse glue was making all errors ENOENT, and _lookup didn't return
ENAMETOOLONG.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: better debug output
Sage Weil [Fri, 2 Jul 2010 23:17:11 +0000 (16:17 -0700)]
client: better debug output

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoclient: return ENAMETOOLONG where appropriate
Sage Weil [Fri, 2 Jul 2010 23:17:00 +0000 (16:17 -0700)]
client: return ENAMETOOLONG where appropriate

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoqa: do untar_snap_rm on two different tarballs (medium and big)
Sage Weil [Fri, 2 Jul 2010 22:59:32 +0000 (15:59 -0700)]
qa: do untar_snap_rm on two different tarballs (medium and big)

15 years agoclient: fix f_namemax returned by statfs
Sage Weil [Fri, 2 Jul 2010 22:46:33 +0000 (15:46 -0700)]
client: fix f_namemax returned by statfs

This was fixed in the kernel last month.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoMakefile: make more random crap only build with WITH_DEBUG
Sage Weil [Fri, 2 Jul 2010 22:12:12 +0000 (15:12 -0700)]
Makefile: make more random crap only build with WITH_DEBUG

This should be everything not packaged.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agorbdtool: implement import
Yehuda Sadeh [Fri, 2 Jul 2010 22:27:44 +0000 (15:27 -0700)]
rbdtool: implement import

still doesn't use fiemap

15 years agoclient: remove typo
Greg Farnum [Fri, 2 Jul 2010 18:59:44 +0000 (11:59 -0700)]
client: remove typo

15 years agoclient: synchronize metadata on fsync, when requested.
Greg Farnum [Fri, 2 Jul 2010 18:28:21 +0000 (11:28 -0700)]
client: synchronize metadata on fsync, when requested.

15 years agorbdtool: cleanup
Yehuda Sadeh [Fri, 2 Jul 2010 18:46:18 +0000 (11:46 -0700)]
rbdtool: cleanup

15 years agoosd: cleanup: move pools can into advance_map()
Sage Weil [Fri, 2 Jul 2010 18:02:56 +0000 (11:02 -0700)]
osd: cleanup: move pools can into advance_map()

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: fix null pg deref, put auid in PGPool, cleanup.
Sage Weil [Fri, 2 Jul 2010 18:00:49 +0000 (11:00 -0700)]
osd: fix null pg deref, put auid in PGPool, cleanup.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomsgr: add config option to set stacksize of reader&writer threads
Sage Weil [Fri, 2 Jul 2010 16:34:30 +0000 (09:34 -0700)]
msgr: add config option to set stacksize of reader&writer threads

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agothread: force stacksize to be multiple of page size; clean up
Sage Weil [Fri, 2 Jul 2010 16:34:55 +0000 (09:34 -0700)]
thread: force stacksize to be multiple of page size; clean up

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agothread: allow setting stacksize when calling create & check return value of pthread_c...
Paul Chiang [Thu, 1 Jul 2010 07:55:57 +0000 (15:55 +0800)]
thread: allow setting stacksize when calling create & check return value of pthread_create

Signed-off-by: Paul Chiang <paul_chiang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoupdate authors
Sage Weil [Fri, 2 Jul 2010 16:24:46 +0000 (09:24 -0700)]
update authors

15 years agorbdtool: implement export
Yehuda Sadeh [Fri, 2 Jul 2010 16:55:52 +0000 (09:55 -0700)]
rbdtool: implement export

15 years agoshift feature supported/required specifications into Policy
Sage Weil [Fri, 2 Jul 2010 16:19:11 +0000 (09:19 -0700)]
shift feature supported/required specifications into Policy

This gets it out of the header, and also makes the previous
"my_features & their_features" logic explicit in the Policy definitions.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomsgr: add set_policy_throttler
Sage Weil [Fri, 2 Jul 2010 15:44:58 +0000 (08:44 -0700)]
msgr: add set_policy_throttler

This lets us continue to use the helpers.

Signed-off-by: Sage Weil <sage@newdream.net>