Check mountpoint read-only status when checking space
commit3afe3b6dfb928200166f348964de24e3f7188568
authorDan McGee <dan@archlinux.org>
Wed, 9 Feb 2011 03:19:00 +0000 (8 21:19 -0600)
committerDan McGee <dan@archlinux.org>
Fri, 11 Feb 2011 16:38:58 +0000 (11 10:38 -0600)
treeef129c6235014841c8734218493bd20789537db7
parent1358a4a80f4d8edbeedc0fdd1e026b491cbb8815
Check mountpoint read-only status when checking space

This is a bit of a stopgap solution for the problem, but an easier one than
revamping the file conflict checking code to support the same stuff. Using
some more gross autoconf magic, figure out which struct field we need to
look at to determine read-only status and store that on our mountpoint
struct. If we find out we needed this partition after calculating size
requirements, then toss an error.

Signed-off-by: Dan McGee <dan@archlinux.org>
configure.ac
lib/libalpm/diskspace.c
lib/libalpm/diskspace.h