Re: how many inodes on a tmpfs mount

From: Per olof Ljungmark <peo_at_nethead.se>
Date: Fri, 11 Nov 2022 13:38:02 UTC
Quoting Olivier Certner <olivier.freebsd@free.fr>:

>> Filesystem    Size    Used   Avail Capacity iused ifree %iused  Mounted on
>> /dev/md1      1.9G    489M    1.3G    27%    119k  143k   45%   <path>
>
> Mmm... For example, I get ~4M inodes per gigabyte on my machines with tmpfs.
>
> It seems you're in fact using mdmfs(8) and that it is defaulting to  
> creating some UFS filesystem instead of a tmpfs one. You can confirm  
> that by running 'mount | grep -F /dev/md1' and checking the  
> filesystem type (should be ufs, not tmpfs).
>
> How is your md mounted? Could you provide the command-line, or the  
> corresponding line in '/etc/fstab'? You should use 'tmpfs' as the  
> device name in both cases.

md    /<path>    mfs rw,-s2g,-wwww:wheel,-p770    2 0

-- 
Per olof Ljungmark
M: +46 707 502 046
Skype: pappapo1
Nethead AB
SE556815226701