]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #27349 from mrc0mmand/codespell
authorLuca Boccassi <bluca@debian.org>
Thu, 20 Apr 2023 21:02:17 +0000 (22:02 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2023 21:02:17 +0000 (22:02 +0100)
tree-wide: code spelling fixes

1  2 
src/basic/mountpoint-util.c

index e28ca825b3e826487be702e214c629f67368ed07,698ea65d481e2a65f092a1043d8b8b97667c6e1f..7237930a761d00fca0b0c5a17457236853a1772e
@@@ -95,7 -95,7 +95,7 @@@ int name_to_handle_at_loop
                  /* The buffer was too small. Size the new buffer by what name_to_handle_at() returned. */
                  n = h->handle_bytes;
  
-                 /* paranoia: check for overlow (note that .handle_bytes is unsigned only) */
+                 /* paranoia: check for overflow (note that .handle_bytes is unsigned only) */
                  if (n > UINT_MAX - offsetof(struct file_handle, f_handle))
                          return -EOVERFLOW;
          }
@@@ -123,7 -123,7 +123,7 @@@ static int fd_fdinfo_mnt_id(int fd, con
  
          r = read_full_virtual_file(path, &fdinfo, NULL);
          if (r == -ENOENT) /* The fdinfo directory is a relatively new addition */
 -                return -EOPNOTSUPP;
 +                return proc_mounted() > 0 ? -EOPNOTSUPP : -ENOSYS;
          if (r < 0)
                  return r;
  
@@@ -280,7 -280,7 +280,7 @@@ int fd_is_mount_point(int fd, const cha
  
  fallback_fdinfo:
          r = fd_fdinfo_mnt_id(fd, filename, flags, &mount_id);
 -        if (IN_SET(r, -EOPNOTSUPP, -EACCES, -EPERM))
 +        if (IN_SET(r, -EOPNOTSUPP, -EACCES, -EPERM, -ENOSYS))
                  goto fallback_fstat;
          if (r < 0)
                  return r;
@@@ -549,8 -549,6 +549,8 @@@ int dev_is_devtmpfs(void) 
                  return r;
  
          r = fopen_unlocked("/proc/self/mountinfo", "re", &proc_self_mountinfo);
 +        if (r == -ENOENT)
 +                return proc_mounted() > 0 ? -ENOENT : -ENOSYS;
          if (r < 0)
                  return r;
  
@@@ -724,7 -722,7 +724,7 @@@ int mount_option_supported(const char *
          _cleanup_close_ int fd = -EBADF;
          int r;
  
-         /* Checks if the specified file system supports a mount option. Returns > 0 if it suppors it, == 0 if
+         /* Checks if the specified file system supports a mount option. Returns > 0 if it supports it, == 0 if
           * it does not. Return -EAGAIN if we can't determine it. And any other error otherwise. */
  
          assert(fstype);