次のように定義されたfstabマウントポイントがあります。
//host.local /media/share1 cifs noexec,nofail,auto,nouser,_netdev,credentials=/home/foo/.smbcredentials,gid=1000,uid=1000,rw 0 0
ネットワーク共有は、15分間アクティビティがないとディスクストレージを一時停止するように構成されたローカルNASサーバー(QNAP)で使用できます。これは、Nautilusを使用してSamba共有を検索するときに期待どおりに機能します。ただし、cifsを使用してマウントすると、クライアントは空のように見える「Command:Create(5)」またはKeep-Alive「Command:KeepAlive(13)」要求を使用して定期的にNASに問い合わせます。 NAS は「STATUS_SUCCESS -> Create Action: The file Been and wasopened (1)」または Keep-Alive 応答で応答します。
SMB2 (Server Message Block Protocol version 2)
SMB2 Header
Server Component: SMB2
Header Length: 64
Credit Charge: 1
Channel Sequence: 0
Reserved: 0000
Command: Create (5)
Credits requested: 2
Flags: 0x00000000
Chain Offset: 0x00000000
Message ID: Unknown (299)
Process Id: 0x00000ba6
Tree Id: 0x79c61208
Session Id: 0x00000000448e3aa5
Signature: 00000000000000000000000000000000
[Response in: 1748]
Create Request (0x05)
StructureSize: 0x0039
0000 0000 0011 100. = Fixed Part Length: 28
.... .... .... ...1 = Dynamic Part: True
Oplock: No oplock (0x00)
Impersonation level: Impersonation (2)
Create Flags: 0x0000000000000000
Reserved: 0000000000000000
Access Mask: 0x00000080
File Attributes: 0x00000000
Share Access: 0x00000007, Read, Write, Delete
Disposition: Open (if file exists open it, else fail) (1)
Create Options: 0x00000000
Filename:
Offset: 0x00000078
Length: 0
ExtraInfo: NO DATA
Offset: 0x00000000
Length: 0
NASが最終的にスタンバイモードになるように、時々NAS共有に対してcifs pingを実行できますか?そうしないと、NASが継続的にアクティブになり、ノイズが発生し、過熱する可能性があります。