- 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 4 次提交
-
-
由 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>
-
由 Sage Weil 提交于
Defined a struct for the SUBSCRIBE_ACK, and use that to size the msgpool. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Previously we were flushing dirty caps by passing an extra flag when traversing the delayed caps list. Besides being a bit ugly, that can also miss caps that are dirty but didn't result in a cap requeue: notably, mark_caps_dirty(). Separate the flushing into a separate helper, and traverse the cap_dirty list. This also brings i_dirty_item in line with i_dirty_caps: we are on the list IFF caps != 0. We carry an inode ref IFF dirty_caps|flushing_caps != 0. Lose the unused return value from __ceph_mark_caps_dirty(). Signed-off-by: NSage Weil <sage@newdream.net>
-
- 15 10月, 2009 3 次提交
-
-
由 Sage Weil 提交于
Both callers of __mark_caps_flushing() do the same work; move it into the helper. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Writeback doesn't work without the bdi set, and writeback on umount doesn't work if we unregister the bdi too early. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
This avoids the fugly pass by reference and makes the code a bit easier to read. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 14 10月, 2009 1 次提交
-
-
由 Sage Weil 提交于
This makes it easier for individual message types to indicate their particular encoding, and make future changes backward compatible. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 13 10月, 2009 2 次提交
-
-
由 Sage Weil 提交于
Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
This lets us extend the format more easily. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 10 10月, 2009 7 次提交
-
-
由 Sage Weil 提交于
This tracks updates to code shared with userspace. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The mon request headers now include session_mon information that must be properly initialized. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
This ensures we don't submit the same request twice if we are kicking a specific osd (as with an osd_reset), or when we hit a transient error and resend. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The peer_reset just takes longer (until we reconnect and discover the osd dropped the session... which it will). Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Return an error and report a corrupt map instead of crying BUG(). Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
If an osd has failed or returned and a request has been sent twice, it's possible to get a reply and unregister the request while the request message is queued for delivery. Since the message references the caller's page vector, we need to revoke it before completing. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The osd request submission path registers the request, drops and retakes the request_mutex, then sends it to the OSD. A racing kick_requests could sent it during that interval, causing the same msg to be sent twice and BUGing in the msgr. Fix by only sending the message if it hasn't been touched by other threads. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 09 10月, 2009 1 次提交
-
-
由 Sage Weil 提交于
Be conservative: renew subscription once half the interval has expired. Do not reuse sub expiration to control hunting. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 08 10月, 2009 4 次提交
-
-
由 Sage Weil 提交于
A misplaced sizeof() around namelen was throwing things off. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
This avoids a divide by zero when the input and/or map are malformed. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Kill the old git revision; print the ceph version and protocol versions instead. Signed-off-by: NSage Weil <sage@newdream.net>
-
- 07 10月, 2009 9 次提交
-
-
由 Sage Weil 提交于
Document files shared between kernel and user code trees. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Kconfig options and Makefile. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Basic state information is available via /sys/kernel/debug/ceph, including instances of the client, fsids, current monitor, mds and osd maps, outstanding server requests, and hooks to adjust debug levels. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
A few Ceph ioctls for getting and setting file layout (striping) parameters, and learning the identity and network address of the OSD a given region of a file is stored on. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Basic NFS re-export support is included. This mostly works. However, Ceph's MDS design precludes the ability to generate a (small) filehandle that will be valid forever, so this is of limited utility. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The msgpool is a basic mempool_t-like structure to preallocate messages we expect to receive over the wire. This ensures we have the necessary memory preallocated to process replies to requests, or to process unsolicited messages from various servers. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
A generic message passing library is used to communicate with all other components in the Ceph file system. The messenger library provides ordered, reliable delivery of messages between two nodes in the system. This implementation is based on TCP. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
Ceph snapshots rely on client cooperation in determining which operations apply to which snapshots, and appropriately flushing snapshotted data and metadata back to the OSD and MDS clusters. Because snapshots apply to subtrees of the file hierarchy and can be created at any time, there is a fair bit of bookkeeping required to make this work. Portions of the hierarchy that belong to the same set of snapshots are described by a single 'snap realm.' A 'snap context' describes the set of snapshots that exist for a given file or directory. Signed-off-by: NSage Weil <sage@newdream.net>
-
由 Sage Weil 提交于
The Ceph metadata servers control client access to inode metadata and file data by issuing capabilities, granting clients permission to read and/or write both inode field and file data to OSDs (storage nodes). Each capability consists of a set of bits indicating which operations are allowed. If the client holds a *_SHARED cap, the client has a coherent value that can be safely read from the cached inode. In the case of a *_EXCL (exclusive) or FILE_WR capabilities, the client is allowed to change inode attributes (e.g., file size, mtime), note its dirty state in the ceph_cap, and asynchronously flush that metadata change to the MDS. In the event of a conflicting operation (perhaps by another client), the MDS will revoke the conflicting client capabilities. In order for a client to cache an inode, it must hold a capability with at least one MDS server. When inodes are released, release notifications are batched and periodically sent en masse to the MDS cluster to release server state. Signed-off-by: NSage Weil <sage@newdream.net>
-