diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-08 21:19:00 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-11 10:38:58 -0600 |
commit | 3afe3b6dfb928200166f348964de24e3f7188568 (patch) | |
tree | ef129c6235014841c8734218493bd20789537db7 /lib/libalpm/diskspace.h | |
parent | 1358a4a80f4d8edbeedc0fdd1e026b491cbb8815 (diff) | |
download | pacman-3afe3b6dfb928200166f348964de24e3f7188568.tar.xz |
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>
Diffstat (limited to 'lib/libalpm/diskspace.h')
-rw-r--r-- | lib/libalpm/diskspace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h index ae99d0c8..7c7dcebd 100644 --- a/lib/libalpm/diskspace.h +++ b/lib/libalpm/diskspace.h @@ -37,6 +37,7 @@ typedef struct __alpm_mountpoint_t { long blocks_needed; long max_blocks_needed; int used; + int read_only; FSSTATSTYPE fsp; } alpm_mountpoint_t; |