Bug 888747 - btrfs-progs does not provide fsck.btrfs
Summary: btrfs-progs does not provide fsck.btrfs
Keywords:
Status: CLOSED DUPLICATE of bug 862871
Alias: None
Product: Fedora
Classification: Fedora
Component: btrfs-progs
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Josef Bacik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-19 12:02 UTC by Gene Czarcinski
Modified: 2012-12-24 17:31 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-24 17:31:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gene Czarcinski 2012-12-19 12:02:26 UTC
Description of problem:
systemd-fsck incorrectly uses fsck.btrfs to check a btrfs subvolume

Version-Release number of selected component (if applicable):
F18

How reproducible:
yes

Steps to Reproduce:
1.boot
2.
3.
  
Actual results:
fsck.btrfs missing so that testing that file  system fails

Expected results:
btrfsck is used

Additional info:
There are two potential fixes: systemd can change or btrfs-progs and add a symlink.

Comment 1 Bill Nottingham 2012-12-19 13:19:57 UTC
I think this is best fixed in btrfs-progs - attempting to special-case a command name per filesystem type doesn't scale.

Comment 2 Gene Czarcinski 2012-12-19 17:20:16 UTC
It might not be as simple as just adding a symlink (which is what I did manually).

It appears that btrfsck does not like being passed "-a"

Comment 3 Lennart Poettering 2012-12-22 09:29:09 UTC
AFAIK btrfsck is a debugging and repair tool, not really something that should be invoked during normal boots. Hence they do not provide the "fsck.btrfs" name. (If you ask me they should not have named it btrfsck really, to avoid this confusion, and picked a name like btrfs-repair or so, copying what XFS did...)

Anyway, reassigning to btrfs-progs, as this really has nothing to do with systemd, but is between util-linux and btrfs-progs.

Comment 4 Gene Czarcinski 2012-12-22 13:33:37 UTC
If btrfsck is not equivalent to the fsck for other file systems then I suspect that is because btrfs does not need one.

I still believe that there is a systemd problem here and it should not be invoking  fsck.btrfs,

If they insist on ignoring it, then I guess the best bet is to add a dummy shell script so no errors occur.

Comment 5 Kay Sievers 2012-12-22 13:58:30 UTC
Is the volume listed in /etc/fstab?

Does it have "0 0" in it, like it should be, because there is no fsck
supposed to run.

Comment 6 Gene Czarcinski 2012-12-22 15:42:07 UTC
Mmmm ... NO!

Looks like another update for anaconda.

Is this (the fact that 0 0 should be in /etc/fstab) written somewhere?

At the very least, this should go into the release notes.

Is this a BLOCKER ... not in my opinion ... then again, if it is not fixed before F18 is released this is going to be there for the F18 lifetime.

Comment 7 Gene Czarcinski 2012-12-24 17:31:23 UTC

*** This bug has been marked as a duplicate of bug 862871 ***


Note You need to log in before you can comment on or make changes to this bug.