Date: Wed, 02 Apr 2014 23:16:04 -0500 From: CyberLeo Kitsana <cyberleo@cyberleo.net> To: "Ronald F. Guilmette" <rfg@tristatelogic.com>, freebsd-questions@freebsd.org Subject: Re: A question about fsck and the -t option Message-ID: <533CE084.2060509@cyberleo.net> In-Reply-To: <2514.1396479646@server1.tristatelogic.com> References: <2514.1396479646@server1.tristatelogic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/02/2014 06:00 PM, Ronald F. Guilmette wrote: > > In message <533C40BF.2010907@cyberleo.net>, > CyberLeo Kitsana <cyberleo@cyberleo.net> wrote: > >> A glance at the source code[1] suggests that {fsck} attempts to infer the >> type from the fstab, and then the BSD disklabel. > > Based upon my limited perusal/skimming of the fsck man page, this appears > to be undocumented behavior. > > I shall be filing a documentation PR on this, because I'm a firm believer > that important aspects of behavior should be documented. Excellent idea. >> It does not appear to >> attempt a guess from the filesystem magic itself. > > Should it perhaps do so? I don't think so. Magical behaviour can be the source of much strife. Precisely what is fsck supposed to do if you create a zpool on a disk without first erasing the ufs magic therefrom, or vice versa, for example? It's much safer to have the operator declare the filesystem type explicitly, via flags or invoking the proper fsck_* binary directly, or implicitly, via fstab, than to run the risk of mis-guessing their intent. > The particular filesystem that wanted to check yesterday was most definitely > _not_ listed in my /etc/fstab file. But that was not an oversight. That was > by intent. > > Also and separately, please correct me if I am wrong, but aren't BSD style > partition labels going the way of the dinosaur, now that we have GPT > partitioning available? Not until GPT stops causing unintended consequences with older machines and poorly implemented firmwares. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net <CyberLeo@CyberLeo.Net> Furry Peace! - http://www.fur.com/peace/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?533CE084.2060509>