[prev in list] [next in list] [prev in thread] [next in thread] 

List:       util-linux-ng
Subject:    Re: [PATCH] fsck: implement fsck -r {fd}
From:       Stanislav Brabec <sbrabec () suse ! cz>
Date:       2015-04-28 18:30:05
Message-ID: 553FD1AD.4050609 () suse ! cz
[Download RAW message or body]

Theodore Ts'o wrote:

> Actually, what of the one-line statistics do you need?  Is it just
> "we're done checking /dev/sdXX", so you can activate quotas for
> /dev/sdXX?

Yes, I think that it is only the device name.

> If so, one of the other patches which Frank Mayhar (one of
> my collegaues) implemented the ability for fsck to run a "completion
> handler" which was a program/shell script that would get executed for
> each file system the check was completed -- and which would pass the
> exit status for each specific file system along to the completion
> handler.  That allowed us to take specific action on a per-file system
> basis if a file system couldn't be repaired, without having to parse
> any of the log outputs to determine which file system had
> uncorrectable file system problems.
>
> I wonder if something like that would be useful for SuSE?
>

This sounds interesting.


From the systemd perspective, I can imagine a completely different 
solution. systemd does not use a completion handlers, but it uses 
dependencies: When one task has fulfilled all its dependencies, then it 
could be run.

- fsck depends on presence of device
- mount depends on presence of the device, presence of mount point and
   fsck being complete.


There can be one fsck service per volume instead of one central fsck 
service.

But it is not a task for util-linux developers.


-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec@suse.cz
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                 fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic