Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XrdCeph : fixed problem with files bigger than 2GB for synchronous writes #263

Merged
merged 1 commit into from
Jul 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/XrdCeph/XrdCephOssFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ssize_t XrdCephOssFile::Read(off_t offset, size_t blen) {
}

ssize_t XrdCephOssFile::Read(void *buff, off_t offset, size_t blen) {
long long rc = ceph_posix_lseek(m_fd, offset, SEEK_SET);
off_t rc = ceph_posix_lseek(m_fd, offset, SEEK_SET);
if (offset == rc) {
return ceph_posix_read(m_fd, buff, blen);
}
Expand All @@ -84,7 +84,7 @@ int XrdCephOssFile::Fstat(struct stat *buff) {
}

ssize_t XrdCephOssFile::Write(const void *buff, off_t offset, size_t blen) {
int rc = ceph_posix_lseek(m_fd, offset, SEEK_SET);
off_t rc = ceph_posix_lseek(m_fd, offset, SEEK_SET);
if (offset == rc) {
return ceph_posix_write(m_fd, buff, blen);
}
Expand Down