| To: | Gopala Krishna <gopalakrishna.n.m@xxxxxxxxx> |
|---|---|
| Subject: | Re: Question related to XFS sync , especially fsync |
| From: | Iustin Pop <iusty@xxxxxxxxx> |
| Date: | Wed, 16 Jan 2008 08:52:15 +0100 |
| Cc: | Chris Wedgwood <cw@xxxxxxxx>, nscott@xxxxxxxxxx, xfs@xxxxxxxxxxx |
| In-reply-to: | <d711080c0801152325g3d57965dm92e3687a5f98c5f6@mail.gmail.com> |
| Mail-followup-to: | Gopala Krishna <gopalakrishna.n.m@xxxxxxxxx>, Chris Wedgwood <cw@xxxxxxxx>, nscott@xxxxxxxxxx, xfs@xxxxxxxxxxx |
| References: | <d711080c0801140414n48e47140y88f545eba605eff9@mail.gmail.com> <20080114224245.GT155259@sgi.com> <d711080c0801150544i53d7abb2hbea659116ce0006b@mail.gmail.com> <478CCEAC.9010008@sandeen.net> <1200436012.9463.184.camel@edge.scott.net.au> <d711080c0801152243h7613bbean9daeab8658f75408@mail.gmail.com> <20080116064840.GA5725@puku.stupidest.org> <d711080c0801152325g3d57965dm92e3687a5f98c5f6@mail.gmail.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.17+20080114 (2008-01-14) |
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 |
| Previous by Date: | Re: Question related to XFS sync , especially fsync, Gopala Krishna |
|---|---|
| Next by Date: | Re: Question related to XFS sync , especially fsync, Gopala Krishna |
| Previous by Thread: | Re: Question related to XFS sync , especially fsync, Gopala Krishna |
| Next by Thread: | Re: Question related to XFS sync , especially fsync, Gopala Krishna |
| Indexes: | [Date] [Thread] [Top] [All Lists] |