v.0.0.r3.g7736133-1 - "No space left on device" when pkg directory is a btrfs subvol
Description:
On my system I mount pacman's pkg directory as a btrfs subvol:
/dev/mapper/cryptvar /var/cache/pacman/pkg btrfs subvol=@var-cache-pacman-pkg,defaults,noatime,autodefrag,compress=zstd,nodev,nosuid,noexec 0 0
Today I noticed first that yay
broke & then trying to rebuild yay
the new pacman 7.0
was also broken
Additional info:
- package version(s):
pacman-7.0.0.r3.g7736133-1-x86_64.pkg.tar.zst
- config and/or log files: my
pacman.conf
is fairly standard
Steps to reproduce:
pacman -Syu
- I rebooted to make sure there was not a full cache somewhere or something funny going on with
btrfs
& the issue persisted - Creating a test file in
/var/cache/pacman/pkg
worked so I don't think the issue is mybtrfs
partition (which is just over half full)
[root@endeavour /var/cache/pacman/pkg]# btrfs filesystem df /var/cache/pacman/pkg
Data, single: total=49.47GiB, used=28.43GiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=262.00MiB, used=215.58MiB
GlobalReserve, single: total=43.66MiB, used=0.00B
the error itself looked like this:
libadwaita-1:1.5.4-1-x86_64.pkg.tar.zst failed to download
orc-0.4.40-1-x86_64.pkg.tar.zst failed to download
Total (2/2) 880.2 KiB 280 KiB/s 00:03 [--------------------------------] 100%
error: could not rename /var/cache/pacman/pkg/download-rV45cJ/libadwaita-1:1.5.4-1-x86_64.pkg.tar.zst.part to /var/cache/pacman/pkg/download-rV45cJ/libadwaita-1:1.5.4-1-x86_64.pkg.tar.zst (No space left on device)
error: could not rename /var/cache/pacman/pkg/download-rV45cJ/orc-0.4.40-1-x86_64.pkg.tar.zst.part to /var/cache/pacman/pkg/download-rV45cJ/orc-0.4.40-1-x86_64.pkg.tar.zst (No space left on device)
error: could not rename /var/cache/pacman/pkg/download-rV45cJ/libadwaita-1:1.5.4-1-x86_64.pkg.tar.zst.sig.part to /var/cache/pacman/pkg/download-rV45cJ/libadwaita-1:1.5.4-1-x86_64.pkg.tar.zst.sig (No space left on device)
error: could not rename /var/cache/pacman/pkg/download-rV45cJ/orc-0.4.40-1-x86_64.pkg.tar.zst.sig.part to /var/cache/pacman/pkg/download-rV45cJ/orc-0.4.40-1-x86_64.pkg.tar.zst.sig (No space left on device)
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
- Downgrading
pacman
back topacman-6.1.0-7-x86_64.pkg.tar.zst
fixedpacman
&yay
- Updating
official
&aur
packages works again - Most probably this issue is in the filesystem space check in pacman
7.0
withbtrfs
subvols ?