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

osd_is_mapped() does not recognize holes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      ldiskfs_fiemap() can return a hole in form

      {0,0,0}

      and then the following construction recognizes this as an allocated space:

              if (start > block) {
                      cached_extent->start = block;
                      cached_extent->end = start;
                      cached_extent->mapped = 0;
              } else {
                      cached_extent->start = start;
                      cached_extent->end = (fe.fe_logical + fe.fe_length) >>
                                            inode->i_blkbits;
                      cached_extent->mapped = 1;
              }
      

      Attachments

        Activity

          People

            bzzz Alex Zhuravlev
            bzzz Alex Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: