1. 19 2月, 2015 3 次提交
    • Y
      ceph: fix atomic_open snapdir · bf91c315
      Yan, Zheng 提交于
      ceph_handle_snapdir() checks ceph_mdsc_do_request()'s return value
      and creates snapdir inode if it's -ENOENT
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      bf91c315
    • Y
      ceph: fix reading inline data when i_size > PAGE_SIZE · fcc02d2a
      Yan, Zheng 提交于
      when inode has inline data but its size > PAGE_SIZE (it was truncated
      to larger size), previous direct read code return -EIO. This patch adds
      code to return zeros for data whose offset > PAGE_SIZE.
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      fcc02d2a
    • Y
      ceph: properly zero data pages for file holes. · 1487a688
      Yan, Zheng 提交于
      A bug is found in striped_read() of fs/ceph/file.c. striped_read() calls
      ceph_zero_pape_vector_range().  The first argument, page_align + read + ret,
      passed to ceph_zero_pape_vector_range() is wrong.
      
      When a file has holes, this wrong parameter may cause memory corruption
      either in kernal space or user space. Kernel space memory may be corrupted in
      the case of non direct IO; user space memory may be corrupted in the case of
      direct IO. In the latter case, the application doing direct IO may crash due
      to memory corruption, as we have experienced.
      
      The correct value should be initial_align + read + ret, where intial_align =
      o_direct ? buf_align : io_align.  Compared with page_align, the current page
      offest, initial_align is the initial page offest, which should be used to
      calculate the page and offset in ceph_zero_pape_vector_range().
      Reported-by: Ncaifeng zhu <zhucaifeng@unissoft-nj.com>
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      1487a688
  2. 18 12月, 2014 4 次提交
  3. 20 11月, 2014 2 次提交
  4. 15 10月, 2014 3 次提交
  5. 28 7月, 2014 1 次提交
  6. 21 7月, 2014 1 次提交
  7. 08 7月, 2014 2 次提交
  8. 12 6月, 2014 1 次提交
  9. 07 5月, 2014 9 次提交
  10. 12 4月, 2014 2 次提交
  11. 05 4月, 2014 1 次提交
  12. 03 4月, 2014 2 次提交
  13. 02 4月, 2014 2 次提交
  14. 18 2月, 2014 1 次提交
  15. 29 1月, 2014 1 次提交
  16. 14 12月, 2013 3 次提交
  17. 07 9月, 2013 1 次提交
  18. 28 8月, 2013 1 次提交