Skip to contentSkip to conversation

reiserfsprogs: update the min block size description

PATCH New Wang Sheng-Hui 1 participant 1 message Dec 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reiserfsprogs: update the min block size description

Current minimal block size is 4096, not 512.

---
 mkreiserfs/mkreiserfs.8.in  | 2 +-
 mkreiserfs/mkreiserfs.c     | 2 +-
 reiserfscore/node_formats.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
mkreiserfs/mkreiserfs.8.in +1 -1
index 850854f..90036b9 100644
@@ -33,7 +33,7 @@ automatically set it.
 .TP
 \fB-b\fR | \fB--block-size \fIN\fR
 \fIN\fR is block size in bytes. It may only be set to a power of 2 within the
-512-8192 interval.
+4096-8192 interval.
 .TP
 \fB-h\fR | \fB--hash \fIHASH\fR
 \fIHASH\fR specifies which hash function will sort the names in the directories.
mkreiserfs/mkreiserfs.c +1 -1
index 6739850..d16d99e 100644
@@ -460,7 +460,7 @@ static void set_block_size(char *str, int *b_size)
 
        if (!is_blocksize_correct(*b_size))
                reiserfs_exit(1, "%s: wrong blocksize %s specified, "
-                             "only power of 2 from 512-8192 interval "
+                             "only power of 2 from 4096-8192 interval "
                              "are supported", program_name, str);
 }
 
reiserfscore/node_formats.c +1 -1
index fccb8ea..6b8c440 100644
@@ -1266,5 +1266,5 @@ void mark_objectid_used(reiserfs_filsys_t fs, __u32 objectid)
 int is_blocksize_correct(unsigned int blocksize)
 {
        return ((((blocksize & -blocksize) == blocksize)
-                && (blocksize >= 512) && (blocksize <= 8192)));
+                && (blocksize >= 4096) && (blocksize <= 8192)));
 }
Signature · 1 line
1.8.3.2