<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="monitored-fsck">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>monitored-fsck</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">nosh</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>monitored-fsck</refname>
<refpurpose>run fsck linked to an external progress monitor</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>monitored-fsck</command>
<arg choice='req'><replaceable>args</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection><title>Description</title>

<para>
<command>monitored-fsck</command> is a chain-loading utility that arranges to run <citerefentry><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry> linked to an external progress monitoring service.
It chain loads to <citerefentry><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry> with the <citerefentry><refentrytitle>execvp</refentrytitle><manvolnum>3</manvolnum></citerefentry> function passing <arg choice='plain'><replaceable>args</replaceable></arg> through unchanged.
</para>

<para>
The monitoring capability depends from the abilities of the <citerefentry><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry> program.
On the BSDs, it has no monitoring plug-in mechanism.
On Linux, the monitoring is done by opening a client stream to the <filename>/run/fsck.progress</filename> local domain socket and passing the <arg choice='plain'>-C<replaceable>fd</replaceable></arg> command line option to <command>fsck</command> where <replaceable>fd</replaceable> is the number of the open file descriptor for that client.
</para>

</refsection><refsection><title>Author</title>
<para><author><personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname></author></para>
</refsection>

</refentry>
