Merge of master-melb:xfs-cmds:26662a by kenmcd.
+[cvs]
+ - Fix buffer sizing issue for large pagesize systems,
+ affecting mkfs auto-device-type-detection heuristics.
+
xfsprogs-2.8.9 (18 July 2006)
- Fix rpm issue with install targets as uid/gid zero (we now
using symbolic names rather than the numeric versions).
if (!type) {
/* perhaps the user tries to mount the swap space
- on a new disk; warn her before she does mke2fs on it */
+ on a new disk; warn her before she does mkfs on it */
int pagesize = getpagesize();
int rd;
- char buf[32768];
+ char buf[128 * 1024]; /* 64k is current max pagesize */
+
+ if (pagesize > sizeof(buf))
+ abort();
rd = pagesize;
if (rd < 8192)