Skip to contentSkip to conversation

usage of xfsctrl for embedded development / uuid question

DISCUSSION Dave Chinner 3 participants 3 messages Jan 15, 2010 – Jan 17, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 5340782.170001263558076439.JavaMail.www@wsfrf1111

#1 lore raw
Quoted 6 lines · On Fri, Jan 15, 2010 at 01:21:16PM +0100, [email protected] wrote:
Quoted 2 lines

install-dev is dependent on a full build of xfsprogs.


Even if i only do
make -C include install-dev

Quoted 6 lines
Quoted 2 lines

Why not just include the xfsprogs-dev package (or equivalent) from your base distro?

For a different architecture, i can't include my distro package.

I don't want the binaries of xfs progs, only the xfsctrl function.

It's a wrapper around ioctl(). You can call ioctl() directly on not need xfsctl at all...

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#2 lore raw
Quoted 2 lines

It's a wrapper around ioctl(). You can call ioctl() directly on not need xfsctl at all...

Right, but i found nowhere the structures and the definition of XFS_IOC_* in the headers "exported" by the kernel.

So i have two solutions :
(1) i add -I/path_to_the_kernel_sources/fs to the cflags of my project.
(2) i install those headers in my sysroot.

I thought that those solutions where worst that only install headers from the xfsprogs package.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw
Quoted 10 lines · Paul Chavent
Quoted 2 lines

It's a wrapper around ioctl(). You can call ioctl() directly on not need xfsctl at all...

Right, but i found nowhere the structures and the definition of XFS_IOC_* in the headers "exported" by the kernel.

So i have two solutions :
(1) i add -I/path_to_the_kernel_sources/fs to the cflags of my project.
(2) i install those headers in my sysroot.

I thought that those solutions where worst that only install headers from the xfsprogs package.

You can just install the xfsprogs headers only by doing it yourself or filtering the installed files in your package manager. I'm not sure it's really worth it to support this special environment in the xfsprogs build system.

Quoted 5 lines

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

---end quoted text---

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs