1. 14 4月, 2014 1 次提交
  2. 07 1月, 2014 1 次提交
    • Z
      xfs: add O_TMPFILE support · 99b6436b
      Zhi Yong Wu 提交于
      Add two functions xfs_create_tmpfile() and xfs_vn_tmpfile()
      to support O_TMPFILE file creation.
      
      In contrast to xfs_create(), xfs_create_tmpfile() has a different
      log reservation to the regular file creation because there is no
      directory modification, and doesn't check if an entry can be added
      to the directory, but the reservation quotas is required appropriately,
      and finally its inode is added to the unlinked list.
      
      xfs_vn_tmpfile() add one O_TMPFILE method to VFS interface and directly
      invoke xfs_create_tmpfile().
      Signed-off-by: NZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
      Reviewed-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NBen Myers <bpm@sgi.com>
      99b6436b
  3. 24 10月, 2013 1 次提交
    • D
      xfs: create a shared header file for format-related information · 70a9883c
      Dave Chinner 提交于
      All of the buffer operations structures are needed to be exported
      for xfs_db, so move them all to a common location rather than
      spreading them all over the place. They are verifying the on-disk
      format, so while xfs_format.h might be a good place, it is not part
      of the on disk format.
      
      Hence we need to create a new header file that we centralise these
      related definitions. Start by moving the bffer operations
      structures, and then also move all the other definitions that have
      crept into xfs_log_format.h and xfs_format.h as there was no other
      shared header file to put them in.
      Signed-off-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NBen Myers <bpm@sgi.com>
      70a9883c