[LU-9708] "ls -s" result changed over time Created: 23/Jun/17 Updated: 24/Jun/17 Resolved: 24/Jun/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.10.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jian Yu | Assignee: | WC Triage |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Lustre Build: https://build.hpdd.intel.com/job/lustre-master/3607/ |
||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
"ls -s" result changed over time: # pwd /mnt/lustre # ls -s total 0 # touch f # ls -s f 0 f # echo a > f # ls -s f 1 f # ls -s f 4 f After about 30 seconds, the allocated size of file f was changed from 1 block to 4 blocks. |
| Comments |
| Comment by Andreas Dilger [ 24/Jun/17 ] |
|
This is not a bug. While the file is in the client cache, we don't know how much space it will actually use on disk so it is just an estimate based on the file size. Once the data is flushed from the client to disk the blocks count reflects the actual space usage on disk. Is there some problem that this causes, or just something you noticed? |
| Comment by Jian Yu [ 24/Jun/17 ] |
|
Hi Andreas, |