[Samba] Very high system load: Samba statfs call for filesystems in /etc/mtab in: fileid_load_mount_entries()
Rainer Krienke
krienke at uni-koblenz.de
Fri Nov 14 00:43:07 MST 2014
Hello,
well this should not be an issue. getmntent() fills in a struct mntent
which represents the fields in /etc/fstab or /etc/mtab. This struct also
contains the mount type which is then "bind".
So this shouldn't be a problem.
Thanks
Rainer
Am 12.11.2014 um 22:33 schrieb Jeremy Allison:
> On Wed, Nov 12, 2014 at 02:35:59PM +0100, Rainer Krienke wrote:
>>
>> My question now is, if the stat calls that are probably triggered in
>> sambas function fileid_load_mount_entries() are really needed for bind
>> mounts? The information of the stat calls will probably be identical to
>> the underlying NFS mounted filesystem /import/user1, /import/user2.
>> Wouldn't it make sense to exclude bind mounted filesystems
>> from the stat call but instead limit the stat calls to the rest of the
>> filesystems?
>
> How can you portably tell it's a bind mount ?
>
> Is there a flag in struct mntent ?
>
--
Rainer Krienke, Uni Koblenz, Rechenzentrum, A22, Universitaetsstrasse 1
56070 Koblenz, http://userpages.uni-koblenz.de/~krienke, Tel: +49261287 1312
PGP: http://userpages.uni-koblenz.de/~krienke/mypgp.html,Fax: +49261287
1001312
More information about the samba
mailing list