* [PATCH] reiserfsprogs: update the min block size description
@ 2013-12-17 7:42 Wang Sheng-Hui
0 siblings, 0 replies; only message in thread
From: Wang Sheng-Hui @ 2013-12-17 7:42 UTC (permalink / raw)
To: reiserfs-devel
Current minimal block size is 4096, not 512.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-17 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 7:42 [PATCH] reiserfsprogs: update the min block size description Wang Sheng-Hui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).