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

osd_ldiskfs_write_rec() can do partial write

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      osd_ldiskfs_write_rec() is used on server for various local writes, most often for llog. It does write by pages so if chunk of data is crossing page boundary then first part can be written but second can fail, e.g. due to -ENOSPC. This cause partially written data which is corruption in most cases, especially with llog.

      Attachments

        Activity

          [LU-10398] osd_ldiskfs_write_rec() can do partial write

          After discussion with Alex it was decided that llog should resolve this but not OSD. Such situation is possible in llog only and it is hard to decide about proper solution in OSD itself.

          tappro Mikhail Pershin added a comment - After discussion with Alex it was decided that llog should resolve this but not OSD. Such situation is possible in llog only and it is hard to decide about proper solution in OSD itself.

          I've just added reproducer and quick solution. This is to be discussed.

          tappro Mikhail Pershin added a comment - I've just added reproducer and quick solution. This is to be discussed.

          Mike Pershin (mike.pershin@intel.com) uploaded a new patch: https://review.whamcloud.com/30565
          Subject: LU-10398 osd: undo partially written data
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: db91ea51513bcbb94bc60a494394e30f4028cc4c

          gerrit Gerrit Updater added a comment - Mike Pershin (mike.pershin@intel.com) uploaded a new patch: https://review.whamcloud.com/30565 Subject: LU-10398 osd: undo partially written data Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: db91ea51513bcbb94bc60a494394e30f4028cc4c

          People

            tappro Mikhail Pershin
            tappro Mikhail Pershin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: