- 19 11月, 2009 4 次提交
-
-
由 Sage Weil 提交于
When we open a monitor session, we send an initial AUTH message listing the auth protocols we support, our entity name, and (possibly) a previously assigned global_id. The monitor chooses a protocol and responds with an initial message. Initially implement AUTH_NONE, a dummy protocol that provides no security, but works within the new framework. It generates 'authorizers' that are used when connecting to (mds, osd) services that simply state our entity name and global_id. This is a wire protocol change. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Unwind initializing if we get ENOMEM during client initialization. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
We require that ceph_con_close be called before we drop the connection, so this is unneeded. Just BUG if con->sock != NULL. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
We want to ceph_con_close when we're done with the connection, before the ref count reaches 0. Once it does, do not call ceph_con_shutdown, as that takes the con mutex and may sleep, and besides that is unnecessary. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 13 11月, 2009 2 次提交
-
-
由 Sage Weil 提交于
We occasionally want to make a best-effort attempt to invalidate cache pages without fear of blocking. If this fails, we fall back to an async invalidate in another thread. Use invalidate_mapping_pages instead of invalidate_inode_page2, as that will skip locked pages, and not deadlock. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Signed-off-by: NSage Weil <sage@newdream.net>
-
- 12 11月, 2009 3 次提交
-
-
由 Sage Weil 提交于
This helps the user know what's going on during the (involved) reconnect process. They already see when the mds fails and reconnect starts. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
It was hidden from sync readdir, but not the cached dcache version. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 11 11月, 2009 2 次提交
-
-
由 Sage Weil 提交于
We don't get an explicit affirmative confirmation that our caps reconnect, nor do we necessarily want to pay that cost. So, take all this code out for now. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
We need to make sure we only swab the address during the banner once. So break process_banner out of process_connect, and clean up the surrounding code so that these are distinct phases of the handshake. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 10 11月, 2009 1 次提交
-
-
由 Sage Weil 提交于
We were using the cap_gen to track both stale caps (caps that timed out due to temporarily losing touch with the mds) and dead caps that did not reconnect after an MDS failure. Introduce a recon_gen counter to track reconnections to restarted MDSs and kill dead caps based on that instead. Rename gen to cap_gen while we're at it to make it more clear which is which. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 08 11月, 2009 1 次提交
-
-
由 Sage Weil 提交于
Make the integer hash function a property of the bucket it is used on. This allows us to gracefully add support for new hash functions without starting from scatch. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 07 11月, 2009 4 次提交
-
-
由 Sage Weil 提交于
The object will be hashed to a placement seed (ps) based on the pg_pool's hash function. This allows new hashes to be introduced into an existing object store, or selection of a hash appropriate to the objects that will be stored in a particular pool. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
We were using the (weak) dcache hash function, but it was leaving lower bits consecutive for consecutive (inode) objects. We really want to make the object to pg mapping random and uniform, so use a proper hash function here. This is Robert Jenkin's public domain hash function (with some minor cleanup): http://burtleburtle.net/bob/hash/evahash.html This is a protocol revision. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
These are way to big to be inline. I missed crush/* when doing the inline audit for akpm's review. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
No ceph prefix. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 05 11月, 2009 3 次提交
-
-
由 Sage Weil 提交于
The port is informational only, but we should make it correct. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Use the __le macro, even though for -1 it doesn't matter. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The endian conversions don't quite work with the old union ceph_pg. Just make it a regular struct, and make each field __le. This is simpler and it has the added bonus of actually working. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 04 11月, 2009 1 次提交
-
-
由 Sage Weil 提交于
We exchange struct ceph_entity_addr over the wire and store it on disk. The sockaddr_storage.ss_family field, however, is host endianness. So, fix ss_family endianness to big endian when sending/receiving over the wire. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 03 11月, 2009 1 次提交
-
-
由 Sage Weil 提交于
This keeps bdi setup/teardown in line with client life cycle. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 02 11月, 2009 2 次提交
-
-
由 Sage Weil 提交于
Even when we encounter a corrupt bucket. We still BUG(). This fixes the warning fs/ceph/crush/mapper.c: In function 'crush_choose': fs/ceph/crush/mapper.c:352: warning: control may reach end of non-void function 'crush_bucket_choose' being inlined Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Fixes warning fs/ceph/xattr.c: In function '__build_xattrs': fs/ceph/xattr.c:353: warning: 'err' may be used uninitialized in this function Signed-off-by: NSage Weil <sage@newdream.net>
-
- 31 10月, 2009 1 次提交
-
-
由 Noah Watkins 提交于
Commit 645a1025 fixes calculation of object offset for layouts with multiple stripes per object. This updates the calculation of the length written to take into account multiple stripes per object. Signed-off-by: NNoah Watkins <noah@noahdesu.com> Signed-off-by: NSage Weil <sage@newdream.net>
-
- 29 10月, 2009 4 次提交
-
-
由 Sage Weil 提交于
We were incorrectly calculationing of object offset. If we have multiple stripe units per object, we need to shift to the start of the current su in addition to the offset within the su. Also rename bno to ono (object number) to avoid some variable naming confusion. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The object extent offset is the file offset _modulo_ the stripe unit. The code was correct, the comment was wrong. Reported-by: NNoah Watkins <jayhawk@soe.ucsc.edu> Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Noah Watkins 提交于
Using stripe unit size calculated and saved on the stack to avoid a redundant call to le32_to_cpu. Signed-off-by: NNoah Watkins <noah@noahdesu.com> Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Noah Watkins 提交于
Usage of non-list.h list_entry function for container_of functionality replaced with direct use of container_of. Signed-off-by: NNoah Watkins <noah@noahdesu.com> Signed-off-by: NSage Weil <sage@newdream.net>
-
- 28 10月, 2009 2 次提交
-
-
由 Sage Weil 提交于
This simplifies much of the error handling during mount. It also means that we have the mount args before client creation, and we can initialize based on those options. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Clearly demark int and string argument options, and do not try to convert string arguments to ints. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 27 10月, 2009 2 次提交
-
-
由 Sage Weil 提交于
Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Since we've increased the max mon count, we shouldn't put the addr array on the parse_mount_args stack. Put it on the heap instead. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 23 10月, 2009 1 次提交
-
-
由 Sage Weil 提交于
Get rid of separate max mon limit; use the system limit instead. This allows mounts when there are lots of mon addrs provided by mount.ceph (as with a host with lots of A/AAAA records). Signed-off-by: NSage Weil <sage@newdream.net>
-
- 22 10月, 2009 1 次提交
-
-
由 Sage Weil 提交于
We can't fill i_size with rbytes at the fill_file_size stage without adding additional checks for directories. Notably, we want st_blocks to remain 0 on directories so that 'du' still works. Fill in i_blocks, i_size specially in ceph_getattr instead. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 20 10月, 2009 2 次提交
-
-
由 Sage Weil 提交于
Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Mix the preferred osd (if any) into the placement seed that is fed into the CRUSH object placement calculation. This prevents all the placement pgs from peering with the same osds. Rev the osd client protocol with this change. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 17 10月, 2009 1 次提交
-
-
由 Sage Weil 提交于
Initialized bdi->ra_pages to enable readahead. Use 512KB default. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 16 10月, 2009 2 次提交
-
-
由 Sage Weil 提交于
Cleanup only. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Pass the front_len we need when pulling a message off a msgpool, and WARN if it is greater than the pool's size. Then try to allocate a new message (to continue without failing). Signed-off-by: NSage Weil <sage@newdream.net>
-