Ceph is a distributed object, block, and file storage platform
Go to file
Rajesh Nambiar b15f6d0231 Fix to some of the command line parsing (including rbd)
Fix#: 2862

Changes to some of the common files for command line parsing

Change to ceph_argparse.cc
-------------------------

Added function ceph_arg_value_type()
  Given an input it will determine
   i) If that input is an option or not
   ii) If input is numeric in nature or not.

  It will set the flag bool_option and bool_numeric appropriately.
  This function is called by ceph_argparse_witharg() to figure out if
  the input parameter to those functions are numeric in nature and not
  an option.  If the input parameter to ceph_argparse_witharg()
  happens to be an option then it implies that user didn't supply
  value to the option.

Changes to strol.cc
-------------------
Changes to strict_strtoll() and strict_strtol()

  Both these functions reponsibility is to convert the string to long or to int.
  I felt it may be not be good for it to display error message within this function,
  rather caller of this function who has better understanding of the function's purpose
  can display the error message.

  Made change in this function to just create a generic error message,Its the
  caller of this function decides what to do with this message.

Signed-off-by: Rajesh Nambiar <rajesh.n@msystechnologies.com>
2015-04-07 23:39:07 -07:00
admin doc: Switch doxygen integration back to breathe 2015-03-20 17:17:16 +08:00
ceph-erasure-code-corpus@f1f95a1de9 erasure-code: workunit to check for encoding regression 2014-11-10 14:56:43 +01:00
ceph-object-corpus@da43eb1195 ceph-object-corpus: drop compat with old ObjectStore::Transaction 2015-01-06 13:29:41 -08:00
cmake/modules Combined CMake Build for Hammer 2015-01-14 16:40:05 -05:00
debian Merge remote-tracking branch 'gh/hammer' 2015-04-07 12:57:07 -07:00
doc doc/release-notes: spelling 2015-04-07 14:10:33 -07:00
examples rbd-replay: Convert prep-for-replay.py to rbd-replay-prep.cc 2014-08-21 10:57:33 -07:00
fusetrace remove superfluous second semicolons at end of lines 2014-05-08 10:09:25 +02:00
keys keys: renew autobuild.asc key 2013-02-07 22:31:40 -08:00
m4 crc32c: add aarch64 optimized crc32c implementation 2015-03-17 13:56:52 -05:00
man man: enable warning msgs for "all" target 2015-04-07 23:26:50 +08:00
qa RBD: update expunge set for latest test, parameterize test script 2015-04-07 16:54:14 -07:00
rpm Move fedora patch file (used by ceph.spec.in) to rpm/ subdir 2014-08-27 12:56:43 -07:00
share ceph-post-file: single command to upload a file to cephdrop 2013-08-16 17:59:11 -07:00
src Fix to some of the command line parsing (including rbd) 2015-04-07 23:39:07 -07:00
systemd ceph.spec.in: fix handling of /var/run/ceph 2015-03-17 12:28:28 -06:00
udev Rework ceph-disk to allow LUKS for encrypted partitions 2015-01-30 14:34:42 +13:00
.gitignore tests: replace existing gtest 1.5.0 with gmock/gtest 1.7.0 2015-01-25 23:09:03 -05:00
.gitmodule_mirrors .gitmodule_mirrors: add gmock.git mirror 2015-03-05 08:29:11 -08:00
.gitmodules ceph needs gmock/gtest to be statically linked 2015-03-06 00:23:44 +01:00
.mailmap mailmap: Zhi (David) Zhang affiliation 2015-04-02 21:54:53 +02:00
.organizationmap mailmap: Ian Kelling affiliation 2015-04-02 21:58:26 +02:00
.peoplemap Some sanitization work on .mailmap, .organizationmap, .peoplemap : Sorting , Duplicate removal 2015-03-16 21:02:34 +00:00
AUTHORS AUTHORS 2014-07-17 21:33:22 -07:00
autogen.sh autogen.sh: do not submodule --force if git does not support it 2015-03-07 17:11:58 +01:00
ceph.spec.in spec.in: sphinx -b man needs sphinx > 1.0 (part 2) 2015-04-07 12:09:03 +02:00
ChangeLog
CMakeLists.txt cmake: add xio 2015-01-14 16:43:36 -05:00
CodingStyle
configure.ac Merge remote-tracking branch 'gh/hammer' 2015-04-07 12:57:07 -07:00
CONTRIBUTING.rst doc: Add a contributing file at the root of repo 2014-09-06 00:23:24 +05:30
COPYING Add GPLv2 text file 2015-02-27 10:43:26 -07:00
COPYING-GPL2 Add GPLv2 text file 2015-02-27 10:43:26 -07:00
COPYING-LGPL2.1
do_autogen.sh Fix do_autogen.sh so that -L is allowed 2015-02-02 16:40:46 -08:00
doc_deps.deb.txt doc: The dot package is included in graphviz package 2014-10-20 10:47:51 -07:00
Doxyfile doc: do not doxygen src/tracing 2015-02-23 16:26:27 +01:00
INSTALL Update INSTALL to mention the submodules/recursive 2014-05-31 11:22:41 +02:00
install-deps.sh install-deps: support OpenSUSE 2015-03-24 14:11:47 +01:00
make-debs.sh debian: create a repository from sources 2015-01-02 12:14:39 +01:00
Makefile.am tests: replace existing gtest 1.5.0 with gmock/gtest 1.7.0 2015-01-25 23:09:03 -05:00
NEWS
PendingReleaseNotes Update PendingReleaseNotes for firefly change, rgw socket path related 2015-04-06 10:38:57 -07:00
pom.xml update license for libcephfs 2014-08-26 15:52:37 -04:00
README README: symlink from README.md 2014-08-06 08:15:35 -07:00
README.cmake Combined CMake Build for Hammer 2015-01-14 16:40:05 -05:00
README.md README.md: fix the indent of a command line usage 2015-02-13 21:10:51 +10:00
README.xio xio: Update README.xio with dependencies 2015-03-17 05:13:57 -07:00
run-make-check.sh run-make-check.sh: git --ancestry-path is not backward compatible 2015-02-05 14:37:38 +01:00
SubmittingPatches be gender neutral 2015-03-23 16:59:55 -07:00

============================================ Ceph - a scalable distributed storage system

Please see http://ceph.com/ for current info.

Contributing Code

Most of Ceph is licensed under the LGPL version 2.1. Some miscellaneous code is under BSD-style license or is public domain. The documentation is licensed under Creative Commons Attribution-ShareAlike (CC BY-SA). There are a handful of headers included here that are licensed under the GPL. Please see the file COPYING for a full inventory of licenses by file.

Code contributions must include a valid "Signed-off-by" acknowledging the license for the modified or contributed file. Please see the file SubmittingPatches for details on what that means and on how to generate and submit patches.

We do not require assignment of copyright to contribute code; code is contributed under the terms of the applicable license.

Build Prerequisites

debian-based

The list of debian packages dependencies can be installed with:

./install-deps.sh

Note: libsnappy-dev and libleveldb-dev are not available upstream for natty, oneiric, and squeeze. Backports for Ceph can be found at ceph.com/debian-leveldb.

rpm-based

The list of RPM packages dependencies can be installed with:

./install-deps.sh

Building Ceph

Developers, please refer to the Developer Guide for more information, otherwise, you can build the server daemons, and FUSE client, by executing the following:

./autogen.sh
./configure
make

(Note that the FUSE client will only be built if libfuse is present.)

Dependencies

The configure script will complain about any missing dependencies as it goes. You can also refer to debian/control or ceph.spec.in for the package build dependencies on those platforms. In many cases, dependencies can be avoided with --with-foo or --without-bar switches. For example,

./configure --with-nss         # use libnss instead of libcrypto++
./configure --without-radosgw  # do not build radosgw
./configure --without-tcmalloc # avoid google-perftools dependency

Building packages

You can build packages for Debian or Debian-derived (e.g., Ubuntu) systems with

sudo apt-get install dpkg-dev
dpkg-checkbuilddeps        # make sure we have all dependencies
dpkg-buildpackage

For RPM-based systems (Red Hat, SUSE, etc.),

rpmbuild

Building the Documentation

Prerequisites

The list of package dependencies for building the documentation can be found in doc_deps.deb.txt:

sudo apt-get install `cat doc_deps.deb.txt`

Building the Documentation

To build the documentation, ensure that you are in the top-level `/ceph directory, and execute the build script. For example:

admin/build-doc