summaryrefslogtreecommitdiff
path: root/src/cephfs.cc
Commit message (Collapse)AuthorAgeFilesLines
* cephfs: Fix warning - use err instead of errnoSam Lang2012-09-261-1/+1
| | | | Signed-off-by: Sam Lang <sam.lang@inktank.com>
* cephfs: Fixes for coverity bugs 716840 and 716970Sam Lang2012-09-261-1/+8
| | | | | | | | | | | | | | | Fixes for two coverity bugs in cephfs.cc. 716840 (CHECKED_RETURN) reported that the return value from fstat wasn't getting checked. It now is checked, reports an error and returns to the caller. 716970 (NEGATIVE_RETURNS) reported that the file descriptor passed to fstat (*fd) might be negative, which isn't allowed. The check at the top that open failed wasn't aborting the function (when *fd < 0), now it does. Signed-off-by: Sam Lang <sam.lang@inktank.com>
* cephfs: add 'map' command to dump file mapping onto objects, osdsSage Weil2012-08-221-3/+41
| | | | | Closes: #3010 Signed-off-by: Sage Weil <sage@inktank.com>
* cephfs: pass -1 for old preferred_osd fieldSage Weil2012-05-121-0/+1
| | | | Signed-off-by: Sage Weil <sage@inktank.com>
* cephfs: remove preferred osd settingSage Weil2012-04-231-18/+3
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* add missing #includes to build on gcc 4.7Tom Callaway2012-02-171-0/+1
| | | | | Signed-off-by: Tom Callaway <spot@redhat.com> Signed-off-by: David Nalley <david@gnsa.us>
* osd: int pool -> int64_t poolSage Weil2011-08-271-3/+3
| | | | | | Internal interfaces. Signed-off-by: Sage Weil <sage@newdream.net>
* cephfs: use strtol instead of atoi; handle 0 properlyGreg Farnum2011-08-251-9/+12
| | | | | | | Besides being generally better, this means we can accept pool 0 as the pool to store stuff in. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* cephfs: fix the stripe_count documentation.Greg Farnum2011-08-251-1/+1
| | | | | | Whoops! Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* mds: Explicitly initialize layout fields, and to the correct values.Greg Farnum2011-06-281-1/+1
| | | | | | | | | | | | | | | We were previously encoding an fl_pg_preferred of 0, which did horrible things to the kernel client since 0 is a valid osd to ask for! To make such things easier to track down in the future, explicitly fill in defaults when memsetting the struct here. (There remain other places that memset the struct to zero without a lot of checks. But we definitely don't want to force them all to fill in the individual fields, as that's fragile, and since they don't seem to be breaking anything yet I'm inclined to leave them as they are.) Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* cephfs: remove unused variablesSage Weil2010-10-281-2/+0
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* cephfs: Wrote and committed cephfsGreg Farnum2010-10-041-0/+265