Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-5552

Incorrect file size with -EDQUOT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.7.0
    • Lustre 2.7.0, Lustre 2.5.3
    • 3
    • 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.

      Attachments

        Issue Links

          Activity

            People

              niu Niu Yawei (Inactive)
              lidongyang Li Dongyang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: