Re: [PATCH v3] 9p: retrieve fid from file when file instance exist.

2020-07-03 Thread Dominique Martinet
Jianyong Wu wrote on Fri, Jul 03, 2020: > In the current setattr implementation in 9p, fid is always retrieved > from dentry no matter file instance exists or not. Thus, there may be > some info related to opened file instance dropped. So it's better > to retrieve fid from file instance when it has

[PATCH v3] 9p: retrieve fid from file when file instance exist.

2020-07-03 Thread Jianyong Wu
In the current setattr implementation in 9p, fid is always retrieved from dentry no matter file instance exists or not. Thus, there may be some info related to opened file instance dropped. So it's better to retrieve fid from file instance when it has passed to setattr. for example: fd=open("tmp",