[systemd-devel] Failed to create directory or subvolume "/var/lib/machines": Invalid argument

Andrey Wagin avagin at gmail.com
Thu Apr 16 08:48:02 PDT 2015


Hello Lennart,

I read the v218-283-gd7b8eec commit and found that you expected that
BTRFS_IOC_SUBVOL_CREATE returns ENOTTY if sub-volumes are not
supported. But in the compat-mode this ioctl returns EINVAL.

For example:
ext4_compat_ioctl returns ENOIOCTLCMD, then vfs_ioctl() convert it into EINVAL.
vfs_ioctl()
  error = filp->f_op->unlocked_ioctl(filp, cmd, arg);
  if (error == -ENOIOCTLCMD)
    error = -EINVAL;

root at localhost:~# /bin/systemd-tmpfiles --create --remove --boot
--exclude-prefix=/dev
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log",
ignoring.
Failed to create directory or subvolume "/var/lib/machines": Invalid argument

Thanks,
Andrew


More information about the systemd-devel mailing list