summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:26 +0100
committerKarel Zak2006-12-07 00:26:26 +0100
commitb22550fa1506e7cf4101bacc694842678908aaf2 (patch)
treef447dc9c312f7b75ea8a3c5df5d2a5bb6726160b /disk-utils
parentImported from util-linux-2.12j tarball. (diff)
downloadkernel-qcow2-util-linux-b22550fa1506e7cf4101bacc694842678908aaf2.tar.gz
kernel-qcow2-util-linux-b22550fa1506e7cf4101bacc694842678908aaf2.tar.xz
kernel-qcow2-util-linux-b22550fa1506e7cf4101bacc694842678908aaf2.zip
Imported from util-linux-2.12k tarball.
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/fsck.cramfs.c10
-rw-r--r--disk-utils/mkfs.cramfs.c4
2 files changed, 12 insertions, 2 deletions
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index 3485bdc7c..83bf00ac8 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -75,7 +75,17 @@ unsigned long end_data = 0; /* end of the data */
static uid_t euid; /* effective UID */
#define PAD_SIZE 512
+
+#include <asm/page.h>
+#ifdef PAGE_SIZE
+#define PAGE_CACHE_SIZE ((int) PAGE_SIZE)
+#elif defined __ia64__
+#define PAGE_CACHE_SIZE (16384)
+#elif defined __alpha__
+#define PAGE_CACHE_SIZE (8192)
+#else
#define PAGE_CACHE_SIZE (4096)
+#endif
/* Guarantee access to at least 8kB at a time */
#define ROMBUFFER_BITS 13
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 32755715d..440b043de 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -121,8 +121,8 @@ usage(int status) {
FILE *stream = status ? stderr : stdout;
fprintf(stream,
- _("usage: %s [-v] [-b blksz] [-e edition] [-i file] [-n name] "
- "dirname outfile\n"
+ _("usage: %s [-h] [-v] [-b blksz] [-e edition] [-i file] "
+ "[-n name] dirname outfile\n"
" -h print this help\n"
" -v be verbose\n"
" -E make all warnings errors "