forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/sage/ceph-client * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (205 commits) ceph: update for write_inode API change ceph: reset osd after relevant messages timed out ceph: fix flush_dirty_caps race with caps migration ceph: include migrating caps in issued set ceph: fix osdmap decoding when pools include (removed) snaps ceph: return EBADF if waiting for caps on closed file ceph: set osd request message front length correctly ceph: reset front len on return to msgpool; BUG on mismatched front iov ceph: fix snaptrace decoding on cap migration between mds ceph: use single osd op reply msg ceph: reset bits on connection close ceph: remove bogus mds forward warning ceph: remove fragile __map_osds optimization ceph: fix connection fault STANDBY check ceph: invalidate_authorizer without con->mutex held ceph: don't clobber write return value when using O_SYNC ceph: fix client_request_forward decoding ceph: drop messages on unregistered mds sessions; cleanup ceph: fix comments, locking in destroy_inode ceph: move dereference after NULL test ... Fix trivial conflicts in Documentation/ioctl/ioctl-number.txt
- Loading branch information
Showing
67 changed files
with
28,066 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
Ceph Distributed File System | ||
============================ | ||
|
||
Ceph is a distributed network file system designed to provide good | ||
performance, reliability, and scalability. | ||
|
||
Basic features include: | ||
|
||
* POSIX semantics | ||
* Seamless scaling from 1 to many thousands of nodes | ||
* High availability and reliability. No single points of failure. | ||
* N-way replication of data across storage nodes | ||
* Fast recovery from node failures | ||
* Automatic rebalancing of data on node addition/removal | ||
* Easy deployment: most FS components are userspace daemons | ||
|
||
Also, | ||
* Flexible snapshots (on any directory) | ||
* Recursive accounting (nested files, directories, bytes) | ||
|
||
In contrast to cluster filesystems like GFS, OCFS2, and GPFS that rely | ||
on symmetric access by all clients to shared block devices, Ceph | ||
separates data and metadata management into independent server | ||
clusters, similar to Lustre. Unlike Lustre, however, metadata and | ||
storage nodes run entirely as user space daemons. Storage nodes | ||
utilize btrfs to store data objects, leveraging its advanced features | ||
(checksumming, metadata replication, etc.). File data is striped | ||
across storage nodes in large chunks to distribute workload and | ||
facilitate high throughputs. When storage nodes fail, data is | ||
re-replicated in a distributed fashion by the storage nodes themselves | ||
(with some minimal coordination from a cluster monitor), making the | ||
system extremely efficient and scalable. | ||
|
||
Metadata servers effectively form a large, consistent, distributed | ||
in-memory cache above the file namespace that is extremely scalable, | ||
dynamically redistributes metadata in response to workload changes, | ||
and can tolerate arbitrary (well, non-Byzantine) node failures. The | ||
metadata server takes a somewhat unconventional approach to metadata | ||
storage to significantly improve performance for common workloads. In | ||
particular, inodes with only a single link are embedded in | ||
directories, allowing entire directories of dentries and inodes to be | ||
loaded into its cache with a single I/O operation. The contents of | ||
extremely large directories can be fragmented and managed by | ||
independent metadata servers, allowing scalable concurrent access. | ||
|
||
The system offers automatic data rebalancing/migration when scaling | ||
from a small cluster of just a few nodes to many hundreds, without | ||
requiring an administrator carve the data set into static volumes or | ||
go through the tedious process of migrating data between servers. | ||
When the file system approaches full, new nodes can be easily added | ||
and things will "just work." | ||
|
||
Ceph includes flexible snapshot mechanism that allows a user to create | ||
a snapshot on any subdirectory (and its nested contents) in the | ||
system. Snapshot creation and deletion are as simple as 'mkdir | ||
.snap/foo' and 'rmdir .snap/foo'. | ||
|
||
Ceph also provides some recursive accounting on directories for nested | ||
files and bytes. That is, a 'getfattr -d foo' on any directory in the | ||
system will reveal the total number of nested regular files and | ||
subdirectories, and a summation of all nested file sizes. This makes | ||
the identification of large disk space consumers relatively quick, as | ||
no 'du' or similar recursive scan of the file system is required. | ||
|
||
|
||
Mount Syntax | ||
============ | ||
|
||
The basic mount syntax is: | ||
|
||
# mount -t ceph monip[:port][,monip2[:port]...]:/[subdir] mnt | ||
|
||
You only need to specify a single monitor, as the client will get the | ||
full list when it connects. (However, if the monitor you specify | ||
happens to be down, the mount won't succeed.) The port can be left | ||
off if the monitor is using the default. So if the monitor is at | ||
1.2.3.4, | ||
|
||
# mount -t ceph 1.2.3.4:/ /mnt/ceph | ||
|
||
is sufficient. If /sbin/mount.ceph is installed, a hostname can be | ||
used instead of an IP address. | ||
|
||
|
||
|
||
Mount Options | ||
============= | ||
|
||
ip=A.B.C.D[:N] | ||
Specify the IP and/or port the client should bind to locally. | ||
There is normally not much reason to do this. If the IP is not | ||
specified, the client's IP address is determined by looking at the | ||
address it's connection to the monitor originates from. | ||
|
||
wsize=X | ||
Specify the maximum write size in bytes. By default there is no | ||
maximu. Ceph will normally size writes based on the file stripe | ||
size. | ||
|
||
rsize=X | ||
Specify the maximum readahead. | ||
|
||
mount_timeout=X | ||
Specify the timeout value for mount (in seconds), in the case | ||
of a non-responsive Ceph file system. The default is 30 | ||
seconds. | ||
|
||
rbytes | ||
When stat() is called on a directory, set st_size to 'rbytes', | ||
the summation of file sizes over all files nested beneath that | ||
directory. This is the default. | ||
|
||
norbytes | ||
When stat() is called on a directory, set st_size to the | ||
number of entries in that directory. | ||
|
||
nocrc | ||
Disable CRC32C calculation for data writes. If set, the OSD | ||
must rely on TCP's error correction to detect data corruption | ||
in the data payload. | ||
|
||
noasyncreaddir | ||
Disable client's use its local cache to satisfy readdir | ||
requests. (This does not change correctness; the client uses | ||
cached metadata only when a lease or capability ensures it is | ||
valid.) | ||
|
||
|
||
More Information | ||
================ | ||
|
||
For more information on Ceph, see the home page at | ||
http://ceph.newdream.net/ | ||
|
||
The Linux kernel client source tree is available at | ||
git://ceph.newdream.net/linux-ceph-client.git | ||
|
||
and the source for the full system is at | ||
git://ceph.newdream.net/ceph.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,6 +291,7 @@ Code Seq#(hex) Include File Comments | |
0x92 00-0F drivers/usb/mon/mon_bin.c | ||
0x93 60-7F linux/auto_fs.h | ||
0x94 all fs/btrfs/ioctl.h | ||
0x97 00-7F fs/ceph/ioctl.h Ceph file system | ||
0x99 00-0F 537-Addinboard driver | ||
<mailto:[email protected]> | ||
0xA0 all linux/sdp/sdp.h Industrial Device Project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1441,6 +1441,15 @@ F: arch/powerpc/include/asm/spu*.h | |
F: arch/powerpc/oprofile/*cell* | ||
F: arch/powerpc/platforms/cell/ | ||
|
||
CEPH DISTRIBUTED FILE SYSTEM CLIENT | ||
M: Sage Weil <[email protected]> | ||
L: [email protected] | ||
W: http://ceph.newdream.net/ | ||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git | ||
S: Supported | ||
F: Documentation/filesystems/ceph.txt | ||
F: fs/ceph | ||
|
||
CERTIFIED WIRELESS USB (WUSB) SUBSYSTEM: | ||
M: David Vrabel <[email protected]> | ||
L: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
config CEPH_FS | ||
tristate "Ceph distributed file system (EXPERIMENTAL)" | ||
depends on INET && EXPERIMENTAL | ||
select LIBCRC32C | ||
select CONFIG_CRYPTO_AES | ||
help | ||
Choose Y or M here to include support for mounting the | ||
experimental Ceph distributed file system. Ceph is an extremely | ||
scalable file system designed to provide high performance, | ||
reliable access to petabytes of storage. | ||
|
||
More information at http://ceph.newdream.net/. | ||
|
||
If unsure, say N. | ||
|
||
config CEPH_FS_PRETTYDEBUG | ||
bool "Include file:line in ceph debug output" | ||
depends on CEPH_FS | ||
default n | ||
help | ||
If you say Y here, debug output will include a filename and | ||
line to aid debugging. This icnreases kernel size and slows | ||
execution slightly when debug call sites are enabled (e.g., | ||
via CONFIG_DYNAMIC_DEBUG). | ||
|
||
If unsure, say N. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Makefile for CEPH filesystem. | ||
# | ||
|
||
ifneq ($(KERNELRELEASE),) | ||
|
||
obj-$(CONFIG_CEPH_FS) += ceph.o | ||
|
||
ceph-objs := super.o inode.o dir.o file.o addr.o ioctl.o \ | ||
export.o caps.o snap.o xattr.o \ | ||
messenger.o msgpool.o buffer.o pagelist.o \ | ||
mds_client.o mdsmap.o \ | ||
mon_client.o \ | ||
osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \ | ||
debugfs.o \ | ||
auth.o auth_none.o \ | ||
crypto.o armor.o \ | ||
auth_x.o \ | ||
ceph_fs.o ceph_strings.o ceph_hash.o ceph_frag.o | ||
|
||
else | ||
#Otherwise we were called directly from the command | ||
# line; invoke the kernel build system. | ||
|
||
KERNELDIR ?= /lib/modules/$(shell uname -r)/build | ||
PWD := $(shell pwd) | ||
|
||
default: all | ||
|
||
all: | ||
$(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules | ||
|
||
modules_install: | ||
$(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules_install | ||
|
||
clean: | ||
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# The following files are shared by (and manually synchronized | ||
# between) the Ceph userland and kernel client. | ||
# | ||
# userland kernel | ||
src/include/ceph_fs.h fs/ceph/ceph_fs.h | ||
src/include/ceph_fs.cc fs/ceph/ceph_fs.c | ||
src/include/msgr.h fs/ceph/msgr.h | ||
src/include/rados.h fs/ceph/rados.h | ||
src/include/ceph_strings.cc fs/ceph/ceph_strings.c | ||
src/include/ceph_frag.h fs/ceph/ceph_frag.h | ||
src/include/ceph_frag.cc fs/ceph/ceph_frag.c | ||
src/include/ceph_hash.h fs/ceph/ceph_hash.h | ||
src/include/ceph_hash.cc fs/ceph/ceph_hash.c | ||
src/crush/crush.c fs/ceph/crush/crush.c | ||
src/crush/crush.h fs/ceph/crush/crush.h | ||
src/crush/mapper.c fs/ceph/crush/mapper.c | ||
src/crush/mapper.h fs/ceph/crush/mapper.h | ||
src/crush/hash.h fs/ceph/crush/hash.h | ||
src/crush/hash.c fs/ceph/crush/hash.c |
Oops, something went wrong.