xfs
[Top] [All Lists]

Re: [PATCH] xfs_io: add support for O_TMPFILE opens

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [PATCH] xfs_io: add support for O_TMPFILE opens
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 21 Feb 2014 09:15:18 +1100
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20140220220000.GA17541@xxxxxxxxxxxxx>
References: <20140220220000.GA17541@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Feb 20, 2014 at 02:00:00PM -0800, Christoph Hellwig wrote:
> Add a new -T argument to the open command that supports using the
> O_TMPFILE flag.
> 
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Can you also push this into the main CLI interface similar to how
all the other open flags can be specified? i.e.

$ xfs_io -d -c "pwrite 0 4k" foo

will open "foo" with O_DIRECT. Be nice just to be able to do

$ xfs_io -dT -c "pwrite 0 4k" foo/

to be able to test O_TMPFILE functionality

FWIW, any plans to add a "link" command to be able to link the
tmpfile into the namespace once it is created?

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>