]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
reef:mds: fix backporting merge errors
authorIgor Golikov <igolikov@ibm.com>
Sun, 23 Feb 2025 12:18:43 +0000 (12:18 +0000)
committerIgor Golikov <igolikov@ibm.com>
Sun, 23 Feb 2025 12:18:43 +0000 (12:18 +0000)
Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
src/client/Client.cc
src/mds/MDSRank.cc

index daa8a4b8c5e90b1ceb2ddfed77920cc2f19deb6e..13f9a65ba415740b22537c2e51a81b9368eb397f 100644 (file)
@@ -10678,7 +10678,7 @@ int Client::read(int fd, char *buf, loff_t size, loff_t offset)
 int Client::preadv(int fd, const struct iovec *iov, int iovcnt, loff_t offset)
 {
   if (iovcnt < 0)
-    return -CEPHFS_EINVAL;
+    return -EINVAL;
   return _preadv_pwritev(fd, iov, iovcnt, offset, false);
 }
 
@@ -10995,7 +10995,7 @@ int Client::write(int fd, const char *buf, loff_t size, loff_t offset)
 int Client::pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset)
 {
   if (iovcnt < 0)
-    return -CEPHFS_EINVAL;
+    return -EINVAL;
   return _preadv_pwritev(fd, iov, iovcnt, offset, true);
 }
 
@@ -11009,9 +11009,6 @@ int64_t Client::_preadv_pwritev_locked(Fh *fh, const struct iovec *iov,
     if (fh->flags & O_PATH)
         return -EBADF;
 #endif
-    if(iovcnt < 0) {
-      return -EINVAL;
-    }
     loff_t totallen = 0;
     for (unsigned i = 0; i < iovcnt; i++) {
         totallen += iov[i].iov_len;
index 703df19dfe548e2a8542a7d863345740602b1540..9227caa28457ab9d0424448184a4ec678e55a436 100644 (file)
@@ -3344,7 +3344,7 @@ int MDSRank::command_lock_path(Formatter* f, const cmdmap_t& cmdmap, std::ostrea
     bool got = cmd_getval(cmdmap, "path", path);
     if (!got) {
       ss << "missing path";
-      return -CEPHFS_EINVAL;
+      return -EINVAL;
     }
   }