From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 19:48:18 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCA7947C for ; Tue, 9 Sep 2014 19:48:17 +0000 (UTC) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 72E5ED55 for ; Tue, 9 Sep 2014 19:48:16 +0000 (UTC) Received: from slackbox.erewhon.home (slackbox.xs4all.nl [83.162.243.5]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id s89JmBFU001930; Tue, 9 Sep 2014 21:48:11 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.home (Postfix, from userid 1001) id F325A123C3; Tue, 9 Sep 2014 21:48:10 +0200 (CEST) Date: Tue, 9 Sep 2014 21:48:10 +0200 From: Roland Smith To: Dave Babb Subject: Re: tmpfs and noatime heads up Message-ID: <20140909194810.GC36353@slackbox.erewhon.home> Mail-Followup-To: Dave Babb , freebsd-questions@freebsd.org References: <540E443C.1040702@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HG+GLK89HZ1zG0kk" Content-Disposition: inline In-Reply-To: <540E443C.1040702@comcast.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 19:48:18 -0000 --HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 08, 2014 at 06:05:16PM -0600, Dave Babb wrote: > I added the noatime option to my fstab where the tempfs entries were.... The noatime option is generally meant to cut down on the amount of writes t= hat is done to a filesystem. This is only important for HDDs and especially SDD= s. Looking at the tmpfs code, it does maintain atime. The driver code checks f= or unknown options when mounting and returns EINVAL when a not allowed option = is found. See tmpfs_mount() /usr/src/sys/fs/tmpfs/tmpfs_vfsops.c > FreeBSD didn't like it and dropped me out to single user mode upon > reboot with the appropriate warning of "invalid mount option". Presumably that's just a conservative way of handling it. Does that also happen when you try to mount a tmpfs by hand after booting? I would guess not. > I removed the noatime flags for my tempfs entries, rebooted, and all > came back up as it should be. >=20 > No harm done.....Just an FYI that the tmpfs (at least on my system) > doesn't support the noatime flag.... According to the code in /usr/src/sys/fs/tmpfs/tmpfs_vfsops.c, the only supported options are; static const char *tmpfs_opts[] =3D { "from", "size", "maxfilesize", "inodes", "uid", "gid", "mode", = "export", "union", NULL }; > Anyway...an FYI! You might want to submit this as at least a documentation bug. FreeBSD now uses bugzilla: https://bugs.freebsd.org/bugzilla/ Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --HG+GLK89HZ1zG0kk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUD1l6AAoJEED21dyjijPggkEP/RPtn8pEjB6c5klpLC6t8QRe 1g/PYbzB76mtM+pZQucvRKZotC5UV6J6n9Fl3WN8FV41xY5X1DSbfwYHkErykXkT +rArsz8U5cvJ01YMSJOMkuxLlB3rzQylcbh8H2jo0dKFkWSN/pc9M04nqZtHu1re 5Zg3KxTz53LGTw4vWUxYykk5dABudvXLs9pJM0rYtG8ofUhFOd6Z+DDZIXWC2nvm 7efGsKPN7rllbFkiJE1tj4HiI0NXAjRPokMANjNvvOvjcCzSt0Er1qSnffj58Ign 2guK87pLfEdum1bbv7orJ9Hbyl8FEkdsF+oEd4nJ8hHu3kH0HQNL6imlQuGrrH7S zf/kOO9aX70IH6mzaxDlItTFK/bsjWiBVvf+Diju+ntwbrEVXo4VxTRXe8kR8/b8 RXgS0ctiONKHDDzs725GYoh+CyiFpuOH348v4BqgBuQXoBcMVNe1J/jbFkq9q3ic OU0lZl6SDhQpkOQpyvkAMCku4/M8u5dqfSefqFifHH49NvBTCNNo8zxRUiWAwgaz pgWITSKvY5m+3Yhk2M/fiuS2ZelfmyrnG29lH7/A+Ylufz5BbKpm9sfYCmS0OB81 jH/aKRI9Zia0vRE3fTSvRX0iLjUnlyakhDXca3lgujtNN7bUIhh9mtqA7WFNJlEe oG5wZbLYeCNs0IKouuiJ =/fRV -----END PGP SIGNATURE----- --HG+GLK89HZ1zG0kk--