[systemd-devel] fsck and -l switch

Kay Sievers kay.sievers at vrfy.org
Thu Nov 25 13:19:28 PST 2010


On Thu, Nov 25, 2010 at 22:15, Tomasz Torcz <tomek at pipebreaker.pl> wrote:
> On Thu, Nov 25, 2010 at 09:44:41PM +0100, Andrej Gelenberg wrote:
>> Hi,
>>
>> -l break fsch*.service for me. fsck.ext4 don't like it. Besides why -l?
>> From man e2fsck:
>>
>> -l filename
>>               Add the block numbers listed in the file specified by
>> filename to the list of bad blocks.  The format of this file is the
>> same as the one generated  by  the  badblocks(8)  program.
>
>  You are looking at the wrong man page.  Check this commit:
> http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=dd0bd943f94392d165c5903e271c966afb0d7b75
> for proper one.

Right, only options which fsck does not understand are passed to the
actual forked fs-specific fsck. The -l for e2fsck would need to be
specified after a '--'.

Kay


More information about the systemd-devel mailing list