xfs
[Top] [All Lists]

Re: Question related to XFS sync , especially fsync

To: "Gopala Krishna" <gopalakrishna.n.m@xxxxxxxxx>, "Chris Wedgwood" <cw@xxxxxxxx>, nscott@xxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: Re: Question related to XFS sync , especially fsync
From: "Gopala Krishna" <gopalakrishna.n.m@xxxxxxxxx>
Date: Wed, 16 Jan 2008 13:41:17 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=CpCxPuucXBNQVov6eSWTFwx/YXH+8X7xYVVQ7vvIuAc=; b=MJEFxVfK1DoMTN385nNlELkRKetSucTK8Or9Lvow5f8ZaB/VF/OO3dptHsnuQw+EGfSQCEdcN24GpgIH3QmK+K5QBUfWgdic3r5lo37bMd6BPRBtCB+q+BdO9vz3vyRXLzvAUcOTntC2LAK2TT0WZ95f93aATI/vtDxtL9sRpKk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sQWw9lXWwnjce95Zd8onLvduPzdPMSGLCx1kafsUHu/Xhot2Cikae/ulWoboUUQq8v8yjo2GTyMtwAKsyhi9xbHh4PDax4nBTYnnsFXtYOqvYzwYwm+/iY6ZZWpDHKi3mAw63IDaszCpFaBdnoWUFmhVD0Z1xd8OJnqZCRKoiMI=
In-reply-to: <20080116075215.GA26822@xxxxxxxxxxxxxxxxx>
References: <d711080c0801140414n48e47140y88f545eba605eff9@xxxxxxxxxxxxxx> <20080114224245.GT155259@xxxxxxx> <d711080c0801150544i53d7abb2hbea659116ce0006b@xxxxxxxxxxxxxx> <478CCEAC.9010008@xxxxxxxxxxx> <1200436012.9463.184.camel@xxxxxxxxxxxxxxxxx> <d711080c0801152243h7613bbean9daeab8658f75408@xxxxxxxxxxxxxx> <20080116064840.GA5725@xxxxxxxxxxxxxxxxxx> <d711080c0801152325g3d57965dm92e3687a5f98c5f6@xxxxxxxxxxxxxx> <20080116075215.GA26822@xxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
You are right and that is the approach I will follow if there is no direct
system call.

Thanks,
Gopal.


On 1/16/08, Iustin Pop <iusty@xxxxxxxxx> wrote:
>
> On Wed, Jan 16, 2008 at 12:55:17PM +0530, Gopala Krishna wrote:
> > If there is a user level system call to deal with the extent information
> > etc, we can use , but many file system is not providing that. Basically
> if
> > we give file it should eb in aposition to display metadata informations
> > including extents and corresponding logical block numbers and device
> > offsets.
> >
> > I have to do it programitically and hence if I have some system call
> rather
> > than command, that would be helpful. Freeze/unfreeze is a command it
> seems
> > right?
>
> Well, most commands are backed by a system call, right? For example,
> strace xfs_freeze to see what system calls it does. IIRC, only xfs_db
> has to access the raw device.
>
> For the block mapping, look at xfs_bmap (and its backend xfs_io), which
> should do exactly what you want.
>
> iustin
>


[[HTML alternate version deleted]]


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