From: Edward Shishkin <edward.shishkin@gmail.com>
To: Ivan Shapovalov <intelfx100@gmail.com>,
Reiserfs development mailing list
<reiserfs-devel@vger.kernel.org>
Subject: Re: Reiser4 for Linux-4.1
Date: Fri, 04 Sep 2015 09:23:00 +0200 [thread overview]
Message-ID: <55E946D4.8040902@gmail.com> (raw)
In-Reply-To: <55E945B6.9050709@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
On 09/04/2015 09:18 AM, Edward Shishkin wrote:
>
>
> On 09/04/2015 02:17 AM, Ivan Shapovalov wrote:
>> On 2015-08-07 at 14:02 +0200, Edward Shishkin wrote:
>>> Changes since Reiser4 for Linux-4.0.4:
>>>
>>> Fixed a problem appearing when running under "no space left on
>>> device". It also could be the reason of sporadic silent non
>>> -reproducible
>>> data corruptions, that were reported periodically.
>>>
>>> The fixup was backported to Linux-4.0 (see reiser4-for-4.0.9).
>>> If you need a backport for older kernel, then let me know.
>>>
>>> Please, find at
>>> http://sourceforge.net/projects/reiser4/files/reiser4-for-linux-4.x/
>> Hi Edward,
>>
>> could you please send the fixup in a separate patch/mail (git-format)?
>>
>> /* btw, I did not forget about finishing discard support etc. I've
>> found myself to be slightly overwhelmed with various things since a
>> month ago, so it's just no time currently. */
>>
>> Thanks,
>
> Hello Ivan,
>
> Attached.
Oops,
forgot the last one..
[-- Attachment #2: reiser4-change-default-behavior-on-error.patch --]
[-- Type: text/x-patch, Size: 3396 bytes --]
Change default behavior on IO errors to "remount readonly";
Improve compatibility warnings.
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
fs/reiser4/init_super.c | 2 -
fs/reiser4/plugin/disk_format/disk_format40.c | 31 +++++++++++++++-----------
2 files changed, 19 insertions(+), 14 deletions(-)
--- a/fs/reiser4/init_super.c
+++ b/fs/reiser4/init_super.c
@@ -533,7 +533,7 @@ int reiser4_init_super_data(struct super
.oneof = {
.result = &sbinfo->onerror,
.list = {
- "panic", "remount-ro", NULL
+ "remount-ro", "panic", NULL
},
}
}
--- a/fs/reiser4/plugin/disk_format/disk_format40.c
+++ b/fs/reiser4/plugin/disk_format/disk_format40.c
@@ -91,12 +91,12 @@ static int update_backup_version(const f
static int update_disk_version_minor(const format40_disk_super_block * sb)
{
- return (get_format40_version(sb) < PLUGIN_LIBRARY_VERSION);
+ return (get_format40_version(sb) < get_release_number_minor());
}
static int incomplete_compatibility(const format40_disk_super_block * sb)
{
- return (get_format40_version(sb) > PLUGIN_LIBRARY_VERSION);
+ return (get_format40_version(sb) > get_release_number_minor());
}
static format40_super_info *get_sb_info(struct super_block *super)
@@ -321,10 +321,14 @@ static int try_init_format40(struct supe
super->s_id,
get_format40_version(sb_copy));
if (incomplete_compatibility(sb_copy))
- printk("reiser4: Warning: The last completely supported "
- "version of disk format40 is %u. Some objects of "
- "the semantic tree can be unaccessible.\n",
- PLUGIN_LIBRARY_VERSION);
+ printk("reiser4: %s: format version number (4.0.%u) is "
+ "greater than release number (4.%u.%u) of reiser4 "
+ "kernel module. Some objects of the volume can be "
+ "inaccessible.\n",
+ super->s_id,
+ get_format40_version(sb_copy),
+ get_release_number_major(),
+ get_release_number_minor());
/* make sure that key format of kernel and filesystem match */
result = check_key_format(sb_copy);
if (result) {
@@ -371,9 +375,8 @@ static int try_init_format40(struct supe
kfree(sb_copy);
if (update_backup_version(sb_copy))
- printk("reiser4: Warning: metadata backup is not updated. "
- "Please run 'fsck.reiser4 --fix' on %s.\n",
- super->s_id);
+ printk("reiser4: %s: use 'fsck.reiser4 --fix' "
+ "to complete disk format upgrade.\n", super->s_id);
sbinfo->fsuid = 0;
sbinfo->fs_flags |= (1 << REISER4_ADG); /* hard links for directories
@@ -617,12 +620,14 @@ int version_update_format40(struct super
if (super->s_flags & MS_RDONLY)
return 0;
- if (get_super_private(super)->version >= PLUGIN_LIBRARY_VERSION)
+ if (get_super_private(super)->version >= get_release_number_minor())
return 0;
- printk("reiser4: Updating disk format to 4.0.%u. The reiser4 metadata "
- "backup is left unchanged. Please run 'fsck.reiser4 --fix' "
- "on %s to update it too.\n", PLUGIN_LIBRARY_VERSION, super->s_id);
+ printk("reiser4: %s: upgrading disk format to 4.0.%u.\n",
+ super->s_id,
+ get_release_number_minor());
+ printk("reiser4: %s: use 'fsck.reiser4 --fix' "
+ "to complete disk format upgrade.\n", super->s_id);
/* Mark the uber znode dirty to call log_super on write_logs. */
init_lh(&lh);
prev parent reply other threads:[~2015-09-04 7:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-07 12:02 Reiser4 for Linux-4.1 Edward Shishkin
2015-09-04 0:17 ` Ivan Shapovalov
2015-09-04 0:25 ` Ivan Shapovalov
2015-09-04 7:18 ` Edward Shishkin
2015-09-04 7:23 ` Edward Shishkin [this message]
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=55E946D4.8040902@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=intelfx100@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.