xfs
[Top] [All Lists]

Re: xfs_fsr, performance related tweaks

To: Just Marc <marc@xxxxxxxxx>
Subject: Re: xfs_fsr, performance related tweaks
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Fri, 29 Jun 2007 10:12:09 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <4683ADF5.9050901@corky.net>
Organization: Aconex
References: <4683ADF5.9050901@corky.net>
Reply-to: nscott@xxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
On Thu, 2007-06-28 at 13:47 +0100, Just Marc wrote:
> ...
> I looked at how the 'io' utility marks files as no-defrag; it calls 
> xfsctl(path, fd, XFS_IOC_FSSETXATTR, &attr); -- this requires a path, 
> which is not available to me when fsr is run in its default mode
> which 
> traverses all xfs filesystems rather than gets to run on a single
> file. 

Just call the ioctl directly - fsr is already doing this in a bunch
of places (even has a call to XFS_IOC_FSSETXATTR already, elsewhere).
The xfsctl wrapper is just to give some tools platform independence -
on IRIX (shares xfs_io code) some of the syscalls take paths, but on
Linux only file descriptors are used.

cheers.

--
Nathan


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