also sprach Mathieu Parent <math.parent@gmail.com> [2016-11-05 20:59 +0100]:
> > After a laptop suspend, SMB sessions are usually disconnected on the
> > server, and even the client will have a hard time just resuming.
>
> This is most probably kernel-side.
Yes, I agree. Per se it's not a bug. I filed this against cifs-utils
because I was imagining a user-space interface to influence the
kernel.
> > This will either lead to soft-errors or hard-blocks, until on
> > the client, eventually, the kernel states
>
> eventually? Meaning not always?
No, always. I should have used another word. In English, eventually
means that something will happen, whereas in German and possibly
French, it might suggest that something possibly happens, or not.
> > I don't really want to shorten the 120 seconds (and I wouldn't know
> > how, there seems to be no mount option),
>
> 120 comes from echo_interval [1] which looks undocumented.
>
> [1] http://sources.debian.net/src/linux/4.8.5-1/fs/cifs/connect.c/?hl=496#L496
Seems a bit weird that this is hard-coded.
> Again, have you tried mount -o remount?
Yes, but unfortunately it doesn't have the desired effect. It just
blocks until the 120 seconds are over. It'd be a nice interface
though!
> > which would immediately cause a reconnection, not only after 120
> > seconds. This could then be executed by systemd for the resume
> > target…
>
> Looking at the NFS kernel code, I don't see any resume handling.
> I don't know if it's affected too.
As far as I know, it's not affected, because NFS is datagram-based,
whereas CIFS is session-based. It's a bit like mosh and SSH…
--
.''`. martin f. krafft <madduck@d.o> @martinkrafft
: :' : proud Debian developer
`. `'` http://people.debian.org/~madduck
`- Debian - when you have better things to do than fixing systems
"in any hierarchy, each individual rises
to his own level of incompetence,
and then remains there."
-- murphy (after dr. laurence j. peter)
Attachment:
digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)