[LU-5552] Incorrect file size with -EDQUOT Created: 28/Aug/14  Updated: 08/Dec/16  Resolved: 01/Sep/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0, Lustre 2.5.3
Fix Version/s: Lustre 2.7.0

Type: Bug Priority: Critical
Reporter: Li Dongyang (Inactive) Assignee: Niu Yawei (Inactive)
Resolution: Fixed Votes: 0
Labels: duu, patch

Issue Links:
Related
is related to LU-5463 Short file size because of -EDQUOT Resolved
Severity: 3
Rank (Obsolete): 15488

 Description   

We applied LU-5463 at NCI, and we discovered yet another i_size issue.
The scenario is almost the same with LU-5463, -EDQUOT triggered sync write via vvp_io_commit_sync() which is not doing cl_page_clip() on the last page.
e.g.
[10:27:30 root@r7:local] # dd if=/dev/urandom bs=20 count=300 > /home/900/bjm900/dyltest && stat /home/900/bjm900/dyltest
300+0 records in
300+0 records out
6000 bytes (6.0 kB) copied, 4.11147 s, 1.5 kB/s
File: `/home/900/bjm900/dyltest'
Size: 8192 Blocks: 16 IO Block: 4194304 regular file
Device: f33cd760h/4080850784d Inode: 144118197237319138 Links: 1
Access: (0644/rw-rr-) Uid: ( 5800/ bjm900) Gid: ( 1090/ z00)
Access: 2014-08-28 10:27:46.000000000 +1000
Modify: 2014-08-28 10:27:50.000000000 +1000
Change: 2014-08-28 10:27:50.000000000 +1000

The size is 8192 instead of 6000.
Patch will follow.



 Comments   
Comment by Li Dongyang (Inactive) [ 28/Aug/14 ]

for master: http://review.whamcloud.com/11630

Comment by Peter Jones [ 28/Aug/14 ]

Niu

Could you please review this patch?

Thanks

Peter

Comment by Peter Jones [ 01/Sep/14 ]

Landed for 2.7

Generated at Sat Feb 10 01:52:28 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.