[LU-11554] Make stat() work with LSOM Created: 22/Oct/18 Updated: 11/Jun/20 Resolved: 11/Jun/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Qian Yingjin | Assignee: | Qian Yingjin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | LSOM | ||
| Issue Links: |
|
||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||
| Description |
|
Currently, stat() does not work with LSOM yet, so using "ls -l" or "mdtest" for testing is not a going to exercise the LSOM code. |
| Comments |
| Comment by Gerrit Updater [ 22/Oct/18 ] |
|
Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/33412 |
| Comment by Andreas Dilger [ 22/Oct/18 ] |
|
I think this is a lot like I think the integration of LSOM with "lfs find" is much higher priority. Also, FLR and DoM have totally correct SOM size/blocks, so if DoM is used to store the majority of small files, this will also avoid the majority of need for accurate SOM size. |
| Comment by Andreas Dilger [ 15/May/20 ] |
|
I think the only thing we should do here is use known valid SOM data (not "lazy") from the MDS if it is available and can be returned to the client (e.g. from FLR files, or if a scrubbing process verifies the size and updates the state on the MDT inode like LU-11962 from userspace). I think some argument could be made that if a file is accessed for read but it has not been modified in some time (e.g. a day or more), then the overhead of doing an extra RPC to start modifying it is outweighed by the benefit of doing fewer RPCs to the OSTs to get the size. |
| Comment by Andreas Dilger [ 11/Jun/20 ] |
|
Closing this as a duplicate of LU-11962, which describes a way to have "LSOM" updates usable for regular stat() operations. |