summaryrefslogtreecommitdiffstats
path: root/src/mount (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mount.ceph.c: fix strdup related memory leakDanny Al-Gaaf2014-06-261-3/+5
| | | | | | | | CID 1219611 (#1 - 5): Resource leak (RESOURCE_LEAK) leaked_storage: Variable saw_name going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* mount.ceph: switch to module_load()Ilya Dryomov2014-04-231-22/+8
| | | | | | Implement modprobe() in terms of module_load() from common/module.h Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
* remove spurious executable permissions on filesKen Dreyer2014-01-091-0/+0
| | | | | | | | Fedora's rpmlint complains that some of the source code files in the tree happen to be executable. Remove the execute bits from these files to resolve the rpmlint warning. Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
* Add -n option to mount.ceph. Required by autofs when /etc/mtab is a link to ↵Steve Stock2013-12-151-2/+8
| | | | | | /proc/mounts (e.g. Debian Wheezy), otherwise automounting a ceph file system fails. Also useful when /etc is read-only. feature 7006 Signed-off-by: Steve Stock <steve@technolope.org>
* mount/mount.ceph.c: reduce scope of 'value'Danny Al-Gaaf2013-06-031-1/+1
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* mount/mount.ceph.c: reduce scope of 'skip' in parse_options()Danny Al-Gaaf2013-05-161-2/+1
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* mount/mount.ceph.c: remove unused variableDanny Al-Gaaf2013-03-201-5/+0
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* mount/canonicalize.c: remove twice included string.hDanny Al-Gaaf2012-11-281-1/+0
| | | | | | Fix includes: remove twice included string.h Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* check malloc return valuesYehuda Sadeh2012-05-211-0/+4
| | | | | | There were a few places where we didn't check malloc return code. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
* rbd, mount.ceph: use pre-stored secret if availableJosh Durgin2011-12-061-11/+12
| | | | | | | If a secret is specified, store and use it, but otherwise check for a pre-existing secret to use. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
* Resolve gcc warnings.Josh Pieper2011-11-141-2/+0
| | | | | | | | | | | These should have no functional changes: * Check errors from functions that currently cannot return any * Initialize variables that gcc can't determine will be initialized in a following function call * Remove unused variables Signed-off-by: Josh Pieper <jjp@pobox.com> Signed-off-by: Sage Weil <sage@newdream.net>
* Use cpp_strerror or strerror_r when appropriate.Josh Durgin2011-09-271-1/+3
| | | | | | | The only remaining uses of strerror are in single-threaded programs that don't depend on libcommon. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
* Merge branch 'stable'Sage Weil2011-09-231-1/+1
|\
| * mount.ceph: fix use-after-freeSage Weil2011-09-221-1/+1
| | | | | | | | Signed-off-by: Sage Weil <sage@newdream.net>
* | mount.ceph: use ":/" instead of just ":" as ip/path delimiterSage Weil2011-09-221-1/+1
|/ | | | | | This is tolerant of colons in the mount subdir. Signed-off-by: Sage Weil <sage@newdream.net>
* addr_parsing: avoid strcpySage Weil2011-08-211-0/+1
| | | | | | | | Make coverity shut up. Coverity cid 44 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount: fix path leakSage Weil2011-08-211-1/+1
| | | | | | | | | canonicalize_path() does not free/touch it's argument; no need to strdup() here. Coverity cid 39 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount: avoid unguarded strcpySage Weil2011-08-211-2/+5
| | | | | | | | Use strdup here, mostly to make coverity shut up. Coverity cid 45 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount: avoid big stack itemSage Weil2011-08-211-1/+5
| | | | | | Coverity cid 54 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount: avoid big stack itemSage Weil2011-08-211-4/+9
| | | | | | Coverity cid 55 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount.ceph: specify full path for /sbin/modprobeSage Weil2011-06-171-1/+1
| | | | | Fixes: #1188 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount.ceph: use common implementations of secret handling and address resolvingJosh Durgin2011-04-221-119/+10
| | | | Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
* common, mount.ceph: move functions for working with secrets into secret.hJosh Durgin2011-04-221-52/+12
| | | | | | Use sprintf instead of safe_cat, since we're just writing a string once. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
* mount.ceph: behave when CONFIG_KEYS is not compiled inSage Weil2011-04-181-1/+1
| | | | | | | In that case we get ENOSYS. This also implies an old version of the client and that we should fall back. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mount.ceph: fix missing includesColin Patrick McCabe2011-03-291-0/+2
| | | | Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* mount.ceph: Use kernel key management API when possible.Tommi Virtanen2011-03-291-4/+83
| | | | | | | Backwards compatible with older kenrnels, for now. Fixes: #852 Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
* mount.ceph: Modprobe ceph before trying the mount.Tommi Virtanen2011-03-291-0/+26
| | | | | | | | This will be needed for the next few commits, where we try to load the keys into the kernel; without ceph.ko loaded, the key type will not be recognized. Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
* mount.ceph: Silently pass through options "name" and "secret".Tommi Virtanen2011-03-291-0/+4
| | | | | Fixes: #914 Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
* mount.ceph: Fix strncmp length comparing "secretfile".Tommi Virtanen2011-03-291-1/+1
| | | | Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
* Merge branch 'stable'Sage Weil2011-02-031-1/+6
|\ | | | | | | | | | | Conflicts: src/common/signal.cc src/os/FileStore.cc
| * mount.ceph: option parsing fixSamuel Just2011-02-021-1/+6
| | | | | | | | | | | | | | | | Passing -o secretfile would cause a segfault since searching for = would result in a null pointer. New version checks for that case. Also, *end cannot be a ,. Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
* | mount.ceph: put static at the beginning of declColin Patrick McCabe2011-02-031-1/+1
|/ | | | | | To squash a gcc warning. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* mount.ceph: make -v a little more verboseColin Patrick McCabe2010-10-081-2/+4
| | | | Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
* mount.ceph: const cleanupColin Patrick McCabe2010-10-081-12/+14
| | | | Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
* mount.ceph: allow the user to omit ceph_optionsColin Patrick McCabe2010-10-081-4/+4
| | | | Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
* mount.ceph: add usage messageColin Patrick McCabe2010-10-081-24/+60
| | | | Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
* mount.ceph: argument parsing cleanupColin Patrick McCabe2010-10-081-21/+33
| | | | | | | | | | * Functions that are local to the file are now static * Don't modify the string argument to mount_resolve_src / parse_options * Don't segfault when mount_resolve_src / parse_options return NULL Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
* mount.ceph: exit with error code from mountPaul Chiang2010-09-101-1/+3
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* mount: fix scope of secret[]Sage Weil2010-09-091-1/+1
| | | | | We use value pointer outside of this block; move declaration up to function level.
* mount.ceph: handle ipv6 addrs, colons, bracesSage Weil2010-07-081-6/+31
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* mount.ceph: ignore noauto, _netdev optionsSage Weil2010-07-051-0/+5
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* mount.ceph: add mount options/flagsSage Weil2010-07-021-12/+25
| | | | | | noatime, nodiratime, relatime. Some cleanup. Signed-off-by: Sage Weil <sage@newdream.net>
* mount: set flags when getting -o syncYehuda Sadeh2010-02-041-0/+2
|
* mount: fix compile errorsSage Weil2010-01-301-2/+1
|
* mount: canonicalize path name for mtabGreg Farnum2010-01-302-1/+195
|
* replace sprintf with snprintf all aroundYehuda Sadeh2010-01-151-1/+2
| | | | Also pass buffer size to relevant functions when required.
* mount: fix hint initialization for getaddrinfoYehuda Sadeh2009-11-051-1/+3
|
* mount.ceph: only return INET addr when doing lookupSage Weil2009-10-271-2/+9
|
* mount: include all A/AAAA records when resolving host nameSage Weil2009-10-221-16/+24
|
* mount.ceph: block same signals as /sbin/mountSage Weil2009-08-211-0/+15
|