Current minimal block size is 4096, not 512. Signed-off-by: Wang Sheng-Hui <shhuiw@xxxxxxxxx> --- mkreiserfs/mkreiserfs.8.in | 2 +- mkreiserfs/mkreiserfs.c | 2 +- reiserfscore/node_formats.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mkreiserfs/mkreiserfs.8.in b/mkreiserfs/mkreiserfs.8.in index 850854f..90036b9 100644 --- a/mkreiserfs/mkreiserfs.8.in +++ b/mkreiserfs/mkreiserfs.8.in @@ -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. diff --git a/mkreiserfs/mkreiserfs.c b/mkreiserfs/mkreiserfs.c index 6739850..d16d99e 100644 --- a/mkreiserfs/mkreiserfs.c +++ b/mkreiserfs/mkreiserfs.c @@ -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); } diff --git a/reiserfscore/node_formats.c b/reiserfscore/node_formats.c index fccb8ea..6b8c440 100644 --- a/reiserfscore/node_formats.c +++ b/reiserfscore/node_formats.c @@ -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))); } -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html