FreeBSD 7 trivial problems / notes

Ivan Voras ivoras at freebsd.org
Mon Dec 10 00:47:54 UTC 2007


Giorgos Keramidas wrote:

> For example, does it make sense to fsck a tmpfs, ever?  When it's not
> mounted, is it accessible in any way?  What are the `use cases' of the
> tmpfs filesystem, other than memory-backed /tmp mounts?

fscking tmpfs, if it does make sense, can't ever be done from the
userland; fsck_tmpfs could, in theory, only instigate the kernel file
system driver to "do something" and probably return some sort of simple
status result - it would be much harder to do any kind of superuser
interaction like the "normal" fsck programs do.

While there could, in theory, be some kind of scrubbing function in the
kernel module that traverses the in-memory structures, I doubt it would
make sense - I suspect the system would crash very soon if a memory
corruption or a bug that mangles the structures existed. Possibly
defragmentation could be useful, but I don't know enough about tmpfs to
say for sure.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20071210/746255c7/attachment.sig>


More information about the freebsd-doc mailing list