Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2014 21:48:10 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Dave Babb <dcbdbis@comcast.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: tmpfs and noatime heads up
Message-ID:  <20140909194810.GC36353@slackbox.erewhon.home>
In-Reply-To: <540E443C.1040702@comcast.net>
References:  <540E443C.1040702@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140909194810.GC36353>