First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 195988
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Radu Benea <radu_benea2002@yahoo.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
errorreport 1st error - during checkroot text/plain Radu Benea 2007-10-15 22:33 0000 1.31 KB Details
errorreport2 2nd error - during checking the remaining filesystems text/plain Radu Benea 2007-10-15 22:34 0000 3.27 KB Details
fstab my fstab file text/plain Radu Benea 2007-10-15 22:34 0000 1.54 KB Details
resier4progs-fsck-preen.patch Add the -p, --preen option patch Roy Marples (RETIRED) 2007-10-16 06:56 0000 2.35 KB Details | Diff
reiser4progs-fsck-preen.patch Add the -p, --preen option patch Roy Marples (RETIRED) 2007-10-16 12:23 0000 2.54 KB Details | Diff
reiser4progs-fsck-preen.patch Add the -p, --preen option patch Roy Marples (RETIRED) 2007-10-16 12:39 0000 2.49 KB Details | Diff
reiser4progs-add_preen-to-fsck.patch reiser4progs-add_preen-to-fsck.patch patch Mat 2008-01-18 17:17 0000 3.85 KB Details | Diff
reiser4progs-1.0.6.ebuild updated ebuild with reference to reiser4progs-add_preen-to-fsck.patch text/plain Mat 2008-01-18 17:18 0000 1.59 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 195988 depends on: 237393 Show dependency tree
Bug 195988 blocks:
Votes: 1    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-15 21:39 0000
actually checking filesystems from fstab fails if the filesystem type is
reiser4
checkroot was the first I ran into - I had to change all my fstab entries with
reiser4 to be sure they are not fsck-ed to get a "normal" boot

the scripts output is the same as "fsck.reiser4 -p"
which in my case is
Default profile:
create:          "reg40"           (id:0x0 type:0x0)    [Regular file plugin
for creat(2)]
key:             "key_large"       (id:0x1 type:0xb)    [Key plugin]
compress:        "lzo1"            (id:0x0 type:0xc)    [Compression plugin]
compressMode:    "conv"            (id:0x4 type:0xd)    [Compression Mode
plugin]
cluster:         "64K"             (id:0x0 type:0x10)   [Cluster plugin]
hash:            "r5_hash"         (id:0x1 type:0x3)    [Directory entry hash
plugin]
fibration:       "ext_1_fibre"     (id:0x2 type:0x4)    [Key fibration plugin]
formatting:      "smart"           (id:0x2 type:0x5)    [File body formatting
plugin]


Reproducible: Always

------- Comment #1 From Roy Marples (RETIRED) 2007-10-15 21:52:31 0000 -------
Post the error message and attach your /etc/fstab please?

------- Comment #2 From Radu Benea 2007-10-15 22:33:26 0000 -------
Created an attachment (id=133568) [edit]
1st error - during checkroot

------- Comment #3 From Radu Benea 2007-10-15 22:34:05 0000 -------
Created an attachment (id=133570) [edit]
2nd error - during checking the remaining filesystems

------- Comment #4 From Radu Benea 2007-10-15 22:34:30 0000 -------
Created an attachment (id=133571) [edit]
my fstab file

------- Comment #5 From Radu Benea 2007-10-15 22:39:53 0000 -------
if you need any more info, let me know, I wanna help

------- Comment #6 From Roy Marples (RETIRED) 2007-10-15 22:53:36 0000 -------
Attach the output of this command please.
fsck -T -C0 -p /; echo $?

------- Comment #7 From Radu Benea 2007-10-15 23:03:43 0000 -------
g-zu g-zu # fsck -T -C0 -p /; echo $?
Default profile:
create:          "reg40"           (id:0x0 type:0x0)    [Regular file plugin
for creat(2)]
key:             "key_large"       (id:0x1 type:0xb)    [Key plugin]
compress:        "lzo1"            (id:0x0 type:0xc)    [Compression plugin]
compressMode:    "conv"            (id:0x4 type:0xd)    [Compression Mode
plugin]
cluster:         "64K"             (id:0x0 type:0x10)   [Cluster plugin]
hash:            "r5_hash"         (id:0x1 type:0x3)    [Directory entry hash
plugin]
fibration:       "ext_1_fibre"     (id:0x2 type:0x4)    [Key fibration plugin]
formatting:      "smart"           (id:0x2 type:0x5)    [File body formatting
plugin]

16

------- Comment #8 From Radu Benea 2007-10-15 23:04:55 0000 -------
I think this should be useful:
as you can see the -p option causes that output
g-zu g-zu # fsck.reiser4 
Usage: fsck.reiser4 [ options ] FILE
Fsck options:
  --check                       checks the consistency (default)
  --fix                         fixes minor corruptions
  --build-sb                    rebuilds the super block
  --build-fs                    rebuilds the filesystem

  -L, --logfile file            complains into the file
  -n, --no-log                  makes fsck to not complain
  -a, --auto                    automatically checks the consistency
                                without any questions.
  -q, --quiet                   supresses gauges
  -r                            ignored
Plugins options:
  -p, --print-profile           prints the plugin profile.
  -l, --print-plugins           prints all known plugins.
  -o, --override TYPE=PLUGIN    overrides the default plugin of the type
                                "TYPE" by the plugin "PLUGIN" in the
                                profile.
Common options:
  -?, -h, --help                prints program usage.
  -V, --version                 prints current version.
  -y, --yes                     assumes an answer 'yes' to all questions.
  -f, --force                   makes fsck to use whole disk, not block
                                device or mounted partition.
  -c, --cache N                 number of nodes in tree buffer cache

------- Comment #9 From Radu Benea 2007-10-15 23:27:25 0000 -------
Here - from man fsck - I believe you should use this option instead

       -a     Automatically  repair  the file system without any questions (use
this option with caution).  Note that e2fsck(8) supports -a for
              backwards compatibility only.  This option is mapped to e2fsck's
-p option which is safe to use, unlike the -a option  that  some
              file system checkers support.

------- Comment #10 From Roy Marples (RETIRED) 2007-10-16 06:37:45 0000 -------
Lets just say that resierfs (3 and 4) did a "preen" by default and used to
silently drop the -p option.

Patching reiser4progs to match reiserfs (and every other fsck helpers)
behaviour is the best solution.

------- Comment #11 From Roy Marples (RETIRED) 2007-10-16 06:56:56 0000 -------
Created an attachment (id=133596) [edit]
Add the -p, --preen option

Try this patch for reiser4progs

------- Comment #12 From Radu Benea 2007-10-16 11:59:23 0000 -------
I tried the patch... It has a problem, though, it asks for confirmation

g-zu reiser4progs-1.0.6 # fsck -T -C0 -p /subversion
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /subversion block device.                                           
Will check the consistency of the Reiser4 SuperBlock.                           
Will check the consistency of the Reiser4 FileSystem.                           
Continue?                                                                       
(Yes/No): 

------- Comment #13 From Radu Benea 2007-10-16 12:10:19 0000 -------
I think it should be behaving the same as the -a flag as -a does only a
consistency check, without fixing stuff around - at least that's what I
understood from looking at the sources, please double-check it, just to be sure

------- Comment #14 From Roy Marples (RETIRED) 2007-10-16 12:23:39 0000 -------
Created an attachment (id=133618) [edit]
Add the -p, --preen option

This one should fix that.

------- Comment #15 From Roy Marples (RETIRED) 2007-10-16 12:39:27 0000 -------
Created an attachment (id=133619) [edit]
Add the -p, --preen option

Actually fix the disk.

What we're trying to do here is make reiser fsck helpers accept similar
arguments to ext2/3/4, jfs, xfs and freebsd's ufs helpers. We do this so we
don't have to write complicated init scripts just to check disks.

------- Comment #16 From Radu Benea 2007-10-16 13:11:09 0000 -------
almost there, but it still doesn't comply with the other - it does a check even
if filesystem is clean

I think that the line from case 'a' is also needed
                        aal_set_bit(&data->options, FSCK_OPT_AUTO);

I'd like to know a solution to get a "dirty" filesystem without actually
reseting my computer, any suggestions? - just to check it out
fsck -T -C0 -p -a /subversion worked fine on the clean filesystem

output from fsck - I stopped it at 10%
I want to mention that the filesystem was clean, it shouldn't check if it's
clean

g-zu reiser4progs-1.0.6 # fsck -T -C0 -p /subversion
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /subversion block device.
Will fix minor corruptions of the Reiser4 SuperBlock.
Will fix minor corruptions of the Reiser4 FileSystem.
***** fsck.reiser4 started at Tue Oct 16 15:56:30 2007
Reiser4 fs was detected on /subversion.
Master super block (16):
magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           d09ad7db-b4ce-4a1c-afe1-541fad32d18b
label:          <none>

Format super block (17):
plugin:         format40
description:    Disk-format plugin.
version:        0
magic:          ReIsEr40FoRmAt
mkfs id:        0x248e6e4b
flushes:        0
blocks:         524288
free blocks:    270400
root block:     254398
tail policy:    0x2 (smart)
next oid:       0x6de9a
file count:     227060
tree height:    4
key policy:     LARGE


CHECKING THE STORAGE TREE
[=====\                                             ] 10%

------- Comment #17 From Jakub Moc (RETIRED) 2007-11-13 21:00:37 0000 -------
*** Bug 199091 has been marked as a duplicate of this bug. ***

------- Comment #18 From Mat 2008-01-18 17:17:50 0000 -------
Created an attachment (id=141232) [edit]
reiser4progs-add_preen-to-fsck.patch

this should solve the problem with baselayout-2/openrc and reiser4, being
forced to boot root partition with rw

(see http://thread.gmane.org/gmane.comp.file-systems.reiserfs.general/21324 for
more info)

------- Comment #19 From Mat 2008-01-18 17:18:53 0000 -------
Created an attachment (id=141233) [edit]
updated ebuild with reference to reiser4progs-add_preen-to-fsck.patch

------- Comment #20 From Pixys 2008-01-18 17:39:58 0000 -------
To use reiser4 and baselayout-2 put "CONSOLE=/dev/tty1 rw" in grub.conf (kernel
options)

------- Comment #21 From Mat 2008-01-18 18:05:01 0000 -------
this won't fix any problems found by fsck.reiser4, 
that way you will need to boot from a livecd and do a full check ...

------- Comment #22 From Andrea Rizzolo 2008-01-23 15:37:09 0000 -------
(In reply to comment #21)
> this won't fix any problems found by fsck.reiser4, 
> that way you will need to boot from a livecd and do a full check ...
> 

I need to append rw, new ebuild with patch is not enough for me, it hangs while
remounting rw

------- Comment #23 From Andrzej Rybczak 2008-02-04 15:46:03 0000 -------
issue with remounting reiser4 partition read/write is resolved in baselayout
from openrc overlay.

------- Comment #24 From Volker Hemmann 2008-04-15 19:24:26 0000 -------
so, if everything is fixed why:

do I get a list of r4 plugins, before the fsck script from baselayout2/openrc
bails out and terminates boot?

------- Comment #25 From Marius Caldas 2008-04-17 05:03:58 0000 -------
Same thing here. It started right after I upgraded to baselayout-2 and OpenRC.
My system is an ~AMD64 running Reiser4 in the root partition. 

------- Comment #26 From Marius Caldas 2008-04-17 06:01:01 0000 -------
The workaround for now is to add the /fastboot file, so /etc/init.d/fsck won't
do any checking.

------- Comment #27 From Volker Hemmann 2008-04-17 14:52:39 0000 -------
Hi,

could you please replace the -p with an -a?

-a is supported by fsck.ext3, so there is no downside. And the patches are
'stupid' - don't change the behaviour of a critical package if you don't have
to.

The fix is easy, just replace ONE (!) letter with another one.

What is so hard about it?

-a is supported by fsck.extX for compatibility - and compatibility is needed
NOW.

Really guys, after 6 month this starts to look ridiculous.

------- Comment #28 From SpanKY 2008-04-17 18:33:25 0000 -------
that statement is incorrect.  there was a reason we changed from -a to -p.

------- Comment #29 From Volker Hemmann 2008-05-13 11:05:06 0000 -------
and what was that reason?

ext2&3 support -a for compatibility.
reiserfs does too
reiser4 needs -a
'standard' fsck knows -a but not -p
fsck.msdos knows -a and -p
fsck.jfs knows -a and -p

so what was the reason that it was changed to -p?

------- Comment #30 From Roy Marples 2008-05-15 13:04:50 0000 -------
(In reply to comment #29)
> so what was the reason that it was changed to -p?

-a is not the same as -p in ext2/3.
Infact, the use of -a is discouraged by the ext devs.

The BSD's (which we now support) don't now the -a option at all, whereas they
support -p.

Every fs aside from resier4 works fine with -p.
The only thing looking ridiculous are the reiser4 devs who give the finger to
everyone else about command line compat. 

------- Comment #31 From SpanKY 2008-05-31 17:44:45 0000 -------
should be fixed with 1.0.6-r1

------- Comment #32 From Volker Hemmann 2008-05-31 21:25:28 0000 -------
>-a is not the same as -p in ext2/3.

the manpages disagrees, from man fsck.ext3:
 -a     This option does the same thing as the -p option.

btw, since the namesys side is very dead, the 'correct' homepage is:

http://www.kernel.org/pub/linux/utils/fs/reiser4
and
http://www.kernel.org/pub/linux/utils/fs/reiserfs

------- Comment #33 From SpanKY 2008-06-01 01:07:51 0000 -------
taking a sample of -a and -p is pointless.  there are known issues with using
-a for all checkers whereas the known issues with -p is largely non existent.

------- Comment #34 From Volker Hemmann 2008-06-01 09:05:37 0000 -------
which issues?

from all the manpages -a is the supported option. So which fsck has a problem
with -a?

xfs? Well, xfs has a problem with all options. And which one is left?

But hey, breaking reiser4progs compatibility with upstream is more important
than putting -a in /etc/init.d/fsck. Fine. And I always thought gentoo had a
'close to upstream policy'.

------- Comment #35 From Roy Marples 2008-06-01 13:01:23 0000 -------
(In reply to comment #34)
> And I always thought gentoo had a 'close to upstream policy'.

Is this the policy of all supported fs's on the kernels Gentoo supports?
Or do you mean upstream being the maintainers of unaccepted large kernel
patches which is a close description of where reiser4 is now.

Luckily for you, you can put fsck_args="-a" in /etc/conf.d/net so you work
around this limition reiser4 enforces.

------- Comment #36 From Volker Hemmann 2008-06-05 16:06:52 0000 -------
How about testing patches before forcing them onto users?

You know what happens with that -preen patch&default fsck on boot?

Yes?

No.

All reiser4 filesystems do a COMPLETE fsck. And that takes ages. 20min boot is
a great argument against that patch&openrc.

Of course, with -a&'vanilla' progs everything is fine.

btw
Will be xfs patched to to support --preen and -p?

------- Comment #37 From SpanKY 2008-06-07 17:04:41 0000 -------
upstream xfs changed to -p a while ago

instead of being sarcastic, file a new bug, or no one will look at it

------- Comment #38 From genbug@piments.com 2008-09-10 13:49:47 0000 -------
(In reply to comment #33)
> taking a sample of -a and -p is pointless.  there are known issues with using
> -a for all checkers whereas the known issues with -p is largely non existent.
> 

So it's this "largely nonexistant" problem which has turned a working system
into one which is completely useless and will not get through boot?

You say open another bug or it won't get looked at. Why not? You know what this
issue is. It's now nearly 8 mths you've known about it.

What new information do you need to fix it?

The only thing preventing this being fixed is the fact that this bug is
incorrectly marked as resolved.

Please fix this in portage .

------- Comment #39 From Anders Aagaard 2008-09-11 11:08:13 0000 -------
http://bugs.gentoo.org/show_bug.cgi?id=237393

First Last Prev Next    No search results available      Search page      Enter new bug