You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file tracker: improve spec compatibility in open_downgrade
Motivation:
rfc 8881 requires that open_downgrade accepts only modes that was
specified by one of the opens. IOW:
open(R) + open(W) can be downgraded to R or W.
open(RW) + open(R) can NOT be downgraded to W, as
open(W) was never seen
https://datatracker.ietf.org/doc/html/rfc8881#section-18.18.3
Modification:
In FileTracker a bitmap introduced to that keeps track of seen opens:
bit 1: OPEN4_SHARE_ACCESS_READ
bit 2: OPEN4_SHARE_ACCESS_WRITE
bit 3: OPEN4_SHARE_ACCESS_BOTH
Result:
better compatibility with spec
Acked-by: Lea Morschel
Target: master
0 commit comments