| To: | "Rosenthal, Eric S." <Eric.S.Rosenthal@xxxxxxxxxx>, "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: Direct I/O question: How to get dioinfo using ioctl? |
| From: | "Nathan Scott" <nathans@xxxxxxxxxxxxxxxxxxxxxxxx> |
| Date: | Tue, 15 May 2001 10:57:24 -0500 |
| In-reply-to: | "Rosenthal, Eric S." <Eric.S.Rosenthal@xxxxxxxxxx> "Direct I/O question: How to get dioinfo using ioctl?" (May 14, 3:04pm) |
| References: | <99A560B38BC6D21180020004ACA6B36A031FAF64@xxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | owner-linux-xfs@xxxxxxxxxxx |
hi, On May 14, 3:04pm, Rosenthal, Eric S. wrote: > Subject: Direct I/O question: How to get dioinfo using ioctl? > > returns an error. I'm looking for a command that does the same thing as > fcntl(fileDescriptor, F_DIOINFO, &dioinfo) does on IRIX. FWIW (now that the problem is resolved), the xfs_mkfile.c code below xfsprogs was just what you were after here. > > #include <stdio.h> > #include <sys/types.h> > #include <sys/stat.h> > #include <sys/timeb.h> > #include <errno.h> > #include <assert.h> > #include <errno.h> > I'd also suggest replacing the next 4/5 lines with <xfs/libxfs.h> > #include <xfs/xfs_fs.h> > > #include <fcntl.h> > #define O_DIRECT 040000 ^... cos this line in particular is evil. ;-) > #define O_RDONLY 0 > > extern int errno; > ... cheers. -- Nathan |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Direct I/O question: How to get dioinfo using ioctl?, Rajagopal Ananthanarayanan |
|---|---|
| Next by Date: | Re: XFS performance issue solved, Federico Sevilla III |
| Previous by Thread: | Re: Direct I/O question: How to get dioinfo using ioctl?, Steve Lord |
| Next by Thread: | Tar, Tom Browder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |