[Rpm-maint] [rpm-software-management/rpm] Add posix.statvfs to rpmlua (PR #4122)

Bernhard Rosenkraenzer notifications at github.com
Tue Feb 24 18:10:19 UTC 2026


berolinux left a comment (rpm-software-management/rpm#4122)

I don't think there's a transaction check that handles the specific type of move that is going on in the particular context: We're moving /var/lib/mysql to /srv/mysql.
There may be a significant amount of user data in /var/lib/mysql that will not be caught by any of rpm's normal transaction checks because they aren't aware of the %pretrans script that does the directory-to-symlink dance doing the lua equivalent of `mv /var/lib/mysql /srv`.
If `/srv` is a separate partition, it makes sense to check if it has sufficient space before moving the data.
The rpm transaction check would catch it if what is being moved would be solely data included in the package.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4122#issuecomment-3953843399
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4122/c3953843399 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260224/2e1b673f/attachment-0001.htm>


More information about the Rpm-maint mailing list