ubuntustudio-bugs team mailing list archive
-
ubuntustudio-bugs team
-
Mailing list archive
-
Message #11187
[Bug 1993294] Re: Export png fails with: Invalid cross-device link
Could this be related to a recent break of syscall copy_file_range.
--
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to inkscape in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1993294
Title:
Export png fails with: Invalid cross-device link
Status in inkscape package in Ubuntu:
Confirmed
Bug description:
Export png fails with "Invalid cross-device link" if /tmp is mount as
tmpfs.
I have stored https://assets.ubuntu.com/v1/ce518a18-CoF-2022_solid+O.svg as file /home/user/CoF-2022_solid+O.svg.
I open inkscape on the command line with inkscape CoF-2022_solid+O.svg.
I select export png and try to export to my home directory.
A file of length 0 is created.
The console shows an error message:
"boost::filesystem::copy_file: Invalid cross-device link: "/tmp/ink_ext_CF77T1", "/home/user/temp/cof.png"
The following mounts exist:
/dev/mapper/vgkubuntu-home on /home type ext4 (rw,relatime)
zfsdt@workstation5:~/temp$ mount | grep '\/tmp'
tmpfs on /tmp type tmpfs (rw,relatime,inode64)
So /tmp and /home are actually separate devices.
ln -s /home/user/temp/cof.png /tmp/cof.png
works fine.
ln /home/user/temp/cof.png /tmp/cof.png
fails with
ln: failed to create hard link '/tmp/cof.png' => '/home/user/temp/cof.png': Invalid cross-device link
Exporting to /tmp works.
Inkscape should not create hardlinks on /tmp as /tmp typically is a
tmpfs.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/1993294/+subscriptions
References