Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Backport change for cephfs storage device.
  • Loading branch information
Marco van Wieringen committed Dec 11, 2014
1 parent 6a150ab commit aeb1b64
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/stored/backends/cephfs_device.c
Expand Up @@ -44,14 +44,12 @@ int cephfs_device::d_open(const char *pathname, int flags, int mode)
m_cephfs_configstring = bstrdup(dev_name);
bp = strchr(m_cephfs_configstring, ':');
if (!bp) {
Mmsg1(errmsg, _("Unable to parse device %s.\n"), dev_name);
Emsg0(M_FATAL, 0, errmsg);
goto bail_out;
m_cephfs_conffile = m_cephfs_configstring;
} else {
*bp++ = '\0';
m_cephfs_conffile = m_cephfs_configstring;
m_basedir = bp;
}

*bp++ = '\0';
m_cephfs_conffile = m_cephfs_configstring;
m_basedir = bp;
}

if (!m_cmount) {
Expand Down

0 comments on commit aeb1b64

Please sign in to comment.