return -ENOMEM);
ret = config->ceph_ll_statfs_fn(config->mount, iref->inode, stbuf);
- DBG_DEBUG("[CEPH] ceph_ll_statfs: ino=%" PRIu64 " ret=%d\n", iref->ino, ret);
+ DBG_DEBUG("[CEPH] ceph_ll_statfs: ino=%" PRIu64 " ret=%d\n",
+ iref->ino, ret);
return ret;
}
CEPH_STATX_UID | CEPH_STATX_GID,
uperm);
vfs_ceph_userperm_del(config, uperm);
- DBG_DEBUG("[CEPH] ceph_ll_setattr: ino=%" PRIu64 " ret=%d\n", iref->ino, ret);
+ DBG_DEBUG("[CEPH] ceph_ll_setattr: ino=%" PRIu64 " ret=%d\n",
+ iref->ino, ret);
return ret;
}
SMB_VFS_HANDLE_GET_DATA(handle, config, struct vfs_ceph_config,
return -ENOMEM);
- DBG_DEBUG("[CEPH] ceph_ll_setattr: ino=%" PRIu64 " mode=%o\n", iref->ino, mode);
+ DBG_DEBUG("[CEPH] ceph_ll_setattr: ino=%" PRIu64 " mode=%o\n",
+ iref->ino, mode);
uperm = vfs_ceph_userperm_new(config, handle->conn);
if (uperm == NULL) {
iref->ino = stx.stx_ino;
iref->owner = true;
out:
- DBG_DEBUG("[CEPH] ceph_ll_lookup: parent-ino=%" PRIu64 " name=%s ret=%d\n",
- parent->ino, name, ret);
+ DBG_DEBUG("[CEPH] ceph_ll_lookup: parent-ino=%" PRIu64 " name=%s "
+ "ret=%d\n", parent->ino, name, ret);
return ret;
}
iref->ino = stx->stx_ino;
iref->owner = true;
out:
- DBG_DEBUG("[CEPH] ceph_ll_lookup: parent-ino=%" PRIu64 " name=%s ret=%d\n",
- parent_fh->iref.ino, name, ret);
+ DBG_DEBUG("[CEPH] ceph_ll_lookup: parent-ino=%" PRIu64 " name=%s "
+ "ret=%d\n", parent_fh->iref.ino, name, ret);
return ret;
}
vfs_ceph_userperm_del(config, uperm);
out:
- DBG_DEBUG("[CEPH] ceph_ll_listxattr: ino=%" PRIu64 " ret=%d\n", iref->ino, ret);
+ DBG_DEBUG("[CEPH] ceph_ll_listxattr: ino=%" PRIu64 " ret=%d\n",
+ iref->ino, ret);
return ret;
}
vfs_ceph_userperm_del(config, uperm);
out:
- DBG_DEBUG("[CEPH] ceph_ll_removexattr: ino=%" PRIu64 " name=%s ret=%d\n",
- iref->ino, name, ret);
+ DBG_DEBUG("[CEPH] ceph_ll_removexattr: ino=%" PRIu64 " name=%s "
+ "ret=%d\n", iref->ino, name, ret);
return ret;
}
iref->ino = stx.stx_ino;
iref->owner = true;
out:
- DBG_DEBUG("[CEPH] iget: %s ino=%" PRIu64 " ret=%d\n", name, iref->ino, ret);
+ DBG_DEBUG("[CEPH] iget: %s ino=%" PRIu64 " ret=%d\n",
+ name, iref->ino, ret);
return ret;
}
flags |= O_PATH;
}
#endif
- DBG_DEBUG("[CEPH] openat: handle=%p fsp=%p flags=%d mode=%d\n", handle, fsp, flags, mode);
+ DBG_DEBUG("[CEPH] openat: handle=%p fsp=%p flags=%d mode=%d\n",
+ handle, fsp, flags, mode);
result = vfs_ceph_igetd(handle, dirfsp, &diref);
if (result != 0) {
/*
* We cannot support sendfile because libcephfs is in user space.
*/
- DBG_DEBUG("[CEPH] sendfile: tofd=%d fromfsp=%p hdr=%p offset=%zd n=%zu\n",
- tofd,
- fromfsp,
- hdr,
- offset,
- n);
+ DBG_DEBUG("[CEPH] sendfile: tofd=%d fromfsp=%p hdr=%p offset=%zd "
+ "n=%zu\n", tofd, fromfsp, hdr, offset, n);
errno = ENOTSUP;
return -1;
}
}
DBG_DEBUG("[CEPH] mode = 0x%x\n", smb_fname->st.st_ex_mode);
out:
- DBG_DEBUG("[CEPH] stat: name=%s result=%d\n", smb_fname->base_name, result);
+ DBG_DEBUG("[CEPH] stat: name=%s result=%d\n",
+ smb_fname->base_name, result);
vfs_ceph_iput(handle, &iref);
END_PROFILE_X(syscall_stat);
return status_code(result);
}
DBG_DEBUG("[CEPH] mode = 0x%x\n", sbuf->st_ex_mode);
out:
- DBG_DEBUG("[CEPH] fstat: name=%s result=%d\n", fsp->fsp_name->base_name, result);
+ DBG_DEBUG("[CEPH] fstat: name=%s result=%d\n",
+ fsp->fsp_name->base_name, result);
END_PROFILE_X(syscall_fstat);
return status_code(result);
}
}
out:
vfs_ceph_iput(handle, &iref);
- DBG_DEBUG("[CEPH] fstatat: name=%s result=%d\n", smb_fname->base_name, result);
+ DBG_DEBUG("[CEPH] fstatat: name=%s result=%d\n",
+ smb_fname->base_name, result);
END_PROFILE_X(syscall_fstatat);
return status_code(result);
}
} else {
struct vfs_ceph_iref iref = {0};
- result = vfs_ceph_iget(handle, fsp->fsp_name->base_name, 0, &iref);
+ result = vfs_ceph_iget(handle,
+ fsp->fsp_name->base_name,
+ 0,
+ &iref);
if (result != 0) {
goto out;
}
struct vfs_ceph_config *config = NULL;
START_PROFILE_X(SNUM(handle->conn), syscall_chdir);
-
SMB_VFS_HANDLE_GET_DATA(handle, config, struct vfs_ceph_config,
goto out);
- DBG_DEBUG("[CEPH] chdir: handle=%p name=%s\n", handle, smb_fname->base_name);
+ DBG_DEBUG("[CEPH] chdir: handle=%p name=%s\n",
+ handle, smb_fname->base_name);
result = config->ceph_chdir_fn(config->mount, smb_fname->base_name);
- DBG_DEBUG("[CEPH] chdir: name=%s result=%d\n", smb_fname->base_name, result);
+ DBG_DEBUG("[CEPH] chdir: name=%s result=%d\n",
+ smb_fname->base_name, result);
out:
END_PROFILE_X(syscall_chdir);
return status_code(result);