docs/188214: Manpage for fsck(8) doesn't say what happens when no -t or -T

Tom Rhodes trhodes at FreeBSD.org
Sat May 24 16:32:36 UTC 2014


On Fri, 23 May 2014 15:40:00 GMT
Allan Jude <allanjude at freebsd.org> wrote:

> The following reply was made to PR docs/188214; it has been noted by GNATS.
> 
> From: Allan Jude <allanjude at freebsd.org>
> To: bug-followup at FreeBSD.org, rfg at tristatelogic.com, 
>  Tom Rhodes <trhodes at FreeBSD.org>
> Cc:  
> Subject: Re: docs/188214: Manpage for fsck(8) doesn't say what happens
>  when no -t or -T
> Date: Fri, 23 May 2014 11:39:24 -0400
> 
>  I have not checked the code to be sure, but from general usage I have
>  noticed that fsck(8) doesn't actually try to detect, or 'taste' the
>  partition, but only looks at /etc/fstab and if the type is not
>  specified, then returns the error.
>  
>  Suggesting that it 'attempts to detect' may give the wrong impression.
>  Someone would have to look at the source of fsck(8) to be sure.
>  

So, in theory, an attempt to parse /etc/fstab would be
an attempt to detect the type; however, my quick glance
at the code showed no real parsing of fstab.  But in
my case, I followed to both the T and t flags, and just
glanced at what was done would they not be specified.
That was really as far as I got, and I attempted to use
very generic language in case it only does one, or the
other, or both.  :)

Reasonable?

-- 
Tom Rhodes


More information about the freebsd-doc mailing list