From: Wang Sheng-Hui <shhuiw@gmail.com>
To: reiserfs-devel@vger.kernel.org
Subject: [PATCH] reiserfsprogs: update the min block size description
Date: Tue, 17 Dec 2013 15:42:50 +0800 [thread overview]
Message-ID: <52B0007A.7070102@gmail.com> (raw)
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
reply other threads:[~2013-12-17 7:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52B0007A.7070102@gmail.com \
--to=shhuiw@gmail.com \
--cc=reiserfs-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.