From: xie xingguo Date: Thu, 19 May 2016 12:52:32 +0000 (+0800) Subject: os/filestore: fix indention, hardcord line to 80 chars X-Git-Tag: v11.0.0~410^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=533942db8dc64fdd7813ebca1158ea38ef4cebcf;p=ceph.git os/filestore: fix indention, hardcord line to 80 chars Signed-off-by: xie xingguo --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 78dab861a351..0192dd3f0a80 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -1566,7 +1566,7 @@ int FileStore::mount() ::unlink(nosnapfn); } - //check fsid with omap + // check fsid with omap // get omap fsid int omap_fsid_fd; char omap_fsid_buf[PATH_MAX]; @@ -1574,26 +1574,34 @@ int FileStore::mount() snprintf(omap_fsid_buf, sizeof(omap_fsid_buf), "%s/osd_uuid", omap_dir.c_str()); // if osd_uuid not exists, assume as this omap matchs corresponding osd if (::stat(omap_fsid_buf, &omap_fsid_stat) != 0){ - dout(10) << "Filestore::mount osd_uuid not found under omap, assume as matched." << dendl; + dout(10) << "Filestore::mount osd_uuid not found under omap, " + << "assume as matched." + << dendl; }else{ // if osd_uuid exists, compares osd_uuid with fsid omap_fsid_fd = ::open(omap_fsid_buf, O_RDONLY, 0644); if (omap_fsid_fd < 0) { ret = -errno; derr << "FileStore::mount: error opening '" << omap_fsid_buf << "': " - << cpp_strerror(ret) << dendl; + << cpp_strerror(ret) + << dendl; goto close_current_fd; } ret = read_fsid(omap_fsid_fd, &omap_fsid); VOID_TEMP_FAILURE_RETRY(::close(omap_fsid_fd)); omap_fsid_fd = -1; // defensive if (ret < 0) { - derr << "FileStore::mount: error reading omap_fsid_fd" << ", omap_fsid = " << omap_fsid - << cpp_strerror(ret) << dendl; + derr << "FileStore::mount: error reading omap_fsid_fd" + << ", omap_fsid = " << omap_fsid + << cpp_strerror(ret) + << dendl; goto close_current_fd; } if (fsid != omap_fsid) { - derr << "FileStore::mount: " << omap_fsid_buf << " has existed omap fsid " << omap_fsid << " != expected osd fsid " << fsid << dendl; + derr << "FileStore::mount: " << omap_fsid_buf + << " has existed omap fsid " << omap_fsid + << " != expected osd fsid " << fsid + << dendl; ret = -EINVAL; goto close_current_fd; }