if (fd < 0) {
dout(2) << __func__ << " " << path
<< ": ceph_open failed. Error: " << fd << dendl;
- return cephfs_errno_to_ntsatus(fd);
+ return cephfs_errno_to_ntstatus_map(fd);
}
fdc->fd = fd;
if (ret < 0) {
dout(2) << __func__ << " " << path
<< ": ceph_mkdir failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
return 0;
}
if (fd_new < 0) {
dout(2) << __func__ << " " << path
<< ": ceph_open failed. Error: " << fd_new << dendl;
- return cephfs_errno_to_ntsatus(fd_new);
+ return cephfs_errno_to_ntstatus_map(fd_new);
}
int ret = ceph_read(cmount, fd_new, (char*) Buffer, BufferLength, Offset);
<< ". Offset: " << Offset
<< "Buffer length: " << BufferLength << dendl;
ceph_close(cmount, fd_new);
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
*ReadLength = ret;
ceph_close(cmount, fd_new);
<< ": ceph_read failed. Error: " << ret
<< ". Offset: " << Offset
<< "Buffer length: " << BufferLength << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
*ReadLength = ret;
return 0;
if (ret) {
dout(2) << __func__ << " " << path
<< ": ceph_statx failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
Offset = stbuf.stx_size;
if (fd_new < 0) {
dout(2) << __func__ << " " << path
<< ": ceph_open failed. Error: " << fd_new << dendl;
- return cephfs_errno_to_ntsatus(fd_new);
+ return cephfs_errno_to_ntstatus_map(fd_new);
}
int ret = ceph_write(cmount, fd_new, (char*) Buffer,
<< ". Offset: " << Offset
<< "Buffer length: " << NumberOfBytesToWrite << dendl;
ceph_close(cmount, fd_new);
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
*NumberOfBytesWritten = ret;
ceph_close(cmount, fd_new);
<< ": ceph_write failed. Error: " << ret
<< ". Offset: " << Offset
<< "Buffer length: " << NumberOfBytesToWrite << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
*NumberOfBytesWritten = ret;
return 0;
if (ret) {
dout(2) << __func__ << " " << get_path(FileName)
<< ": ceph_sync failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
return 0;
}
if (ret) {
dout(2) << __func__ << " " << path
<< ": ceph_statx failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
} else {
int ret = ceph_fstatx(cmount, fdc->fd, &stbuf, requested_attrs, 0);
if (ret) {
dout(2) << __func__ << " " << path
<< ": ceph_fstatx failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
}
if (ret != 0) {
dout(2) << __func__ << " " << path
<< ": ceph_mkdir failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
WIN32_FIND_DATAW findData;
if (ret < 0) {
dout(2) << __func__ << " " << path
<< ": ceph_readdirplus_r failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
to_wstring(result.d_name).copy(findData.cFileName, MAX_PATH);
if (ret != 0) {
dout(2) << __func__ << " " << path
<< ": ceph_opendir failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
WIN32_FIND_DATAW findData;
<< ": ceph_rename failed. Error: " << ret << dendl;
}
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
static NTSTATUS WinCephSetEndOfFile(
dout(2) << __func__ << " " << get_path(FileName)
<< ": ceph_ftruncate failed. Error: " << ret
<< " Offset: " << ByteOffset << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
return 0;
if (ret) {
dout(2) << __func__ << " " << get_path(FileName)
<< ": ceph_fstatx failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
if ((unsigned long long) AllocSize < stbuf.stx_size) {
if (ret) {
dout(2) << __func__ << " " << get_path(FileName)
<< ": ceph_ftruncate failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
return 0;
}
if (ret) {
dout(2) << __func__ << " " << path
<< ": ceph_setattrx failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
return 0;
}
int ret = ceph_statfs(cmount, "/", &vfsbuf);
if (ret) {
derr << "ceph_statfs failed. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);;
+ return cephfs_errno_to_ntstatus_map(ret);;
}
*FreeBytesAvailable = vfsbuf.f_bsize * vfsbuf.f_bfree;
fsid_str, sizeof(fsid_str));
if (ret < 0) {
dout(2) << "Coudln't retrieve the cluster fsid. Error: " << ret << dendl;
- return cephfs_errno_to_ntsatus(ret);
+ return cephfs_errno_to_ntstatus_map(ret);
}
uuid_d fsid;
r = ceph_mount(cmount, g_cfg->root_path.c_str());
if (r) {
derr << "ceph_mount failed. Error: " << r << dendl;
- return cephfs_errno_to_ntsatus(r);
+ return cephfs_errno_to_ntstatus_map(r);
}
if (g_cfg->win_vol_name.empty()) {