* [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file
@ 2011-11-02 15:14 Ilya Dryomov
2011-11-02 16:39 ` Helmut Hullen
2011-11-02 20:42 ` Ilya Dryomov
0 siblings, 2 replies; 4+ messages in thread
From: Ilya Dryomov @ 2011-11-02 15:14 UTC (permalink / raw)
To: linux-btrfs; +Cc: Chris Mason, Hugo Mills, idryomov
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
---
INSTALL | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/INSTALL b/INSTALL
index 6afbd90..11c388b 100644
--- a/INSTALL
+++ b/INSTALL
@@ -19,7 +19,8 @@ insmod btrfs.ko
The Btrfs utility programs require libuuid to build. This can be found
in the e2fsprogs sources, and is usually available as libuuid or
-e2fsprogs-devel from various distros.
+e2fsprogs-devel from various distros. The other dependency is libattr
+(libattr1-dev in Debian-based distros).
Building the utilities is just make ; make install. The programs go
into /usr/local/bin. The mains commands available are:
--
1.7.6.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file
2011-11-02 15:14 [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file Ilya Dryomov
@ 2011-11-02 16:39 ` Helmut Hullen
2011-11-02 20:42 ` Ilya Dryomov
1 sibling, 0 replies; 4+ messages in thread
From: Helmut Hullen @ 2011-11-02 16:39 UTC (permalink / raw)
To: linux-btrfs
Hallo, Ilya,
Du meintest am 02.11.11:
> The Btrfs utility programs require libuuid to build. This can be
> found in the e2fsprogs sources, and is usually available as libuuid
> or e2fsprogs-devel from various distros. The other dependency is
> libattr +(libattr1-dev in Debian-based distros).
Just for information: my btrfs-progs packet (integration-20111030) shows
(via "ldd")
libcom_err.so.2 => /lib/libcom_err.so.2 (0x401cc000)
libcom_err.so.3 => /usr/X11R6/lib/libcom_err.so.3 (0x40061000)
libc.so.6 => /lib/libc.so.6 (0x4003b000)
libext2fs.so.2 => /lib/libext2fs.so.2 (0x40037000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x401cf000)
/lib/ld-linux.so.2 (0x40000000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40037000)
libresolv.so.2 => /lib/libresolv.so.2 (0x401d2000)
libuuid.so.1 => /lib/libuuid.so.1 (0x40037000)
No "libattr". No special compiler option.
Slackware 13.37
Viele Gruesse!
Helmut
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file
2011-11-02 15:14 [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file Ilya Dryomov
2011-11-02 16:39 ` Helmut Hullen
@ 2011-11-02 20:42 ` Ilya Dryomov
[not found] ` <CAAeznTp=oSUK_rv2jsHwNzQzncqyLSoyEnYPTcuBRMqyPo56zg@mail.gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Ilya Dryomov @ 2011-11-02 20:42 UTC (permalink / raw)
To: linux-btrfs; +Cc: Chris Mason, Hugo Mills
On Wed, Nov 02, 2011 at 05:14:33PM +0200, Ilya Dryomov wrote:
> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
> ---
> INSTALL | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/INSTALL b/INSTALL
> index 6afbd90..11c388b 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -19,7 +19,8 @@ insmod btrfs.ko
>
> The Btrfs utility programs require libuuid to build. This can be found
> in the e2fsprogs sources, and is usually available as libuuid or
> -e2fsprogs-devel from various distros.
> +e2fsprogs-devel from various distros. The other dependency is libattr
> +(libattr1-dev in Debian-based distros).
>
> Building the utilities is just make ; make install. The programs go
> into /usr/local/bin. The mains commands available are:
> --
> 1.7.6.3
Scratch that, it seems it's indeed not needed. The thing is that every
time a set up a new test machine I have to install libattr1-dev, but I
never looked into it in detail.
So libattr1-dev is needed because mkfs includes attr/xattr.h to be able
to create FS from image with extended attributes. I think it's safe to
change attr/xattr.h include to sys/xattr.h and thus get rid of this
build dependency. (attr/xattr.h seems to be there for compatibility
with SGI IRIX)
I built mkfs with sys/xattr.h and created FS from directory containing
files with xattrs, it worked.
Thanks,
Ilya
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fwd: [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file
[not found] ` <CAAeznTp=oSUK_rv2jsHwNzQzncqyLSoyEnYPTcuBRMqyPo56zg@mail.gmail.com>
@ 2011-11-02 22:58 ` Andrew Benton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Benton @ 2011-11-02 22:58 UTC (permalink / raw)
To: Leonidas Spyropoulos; +Cc: linux-btrfs
On Wed, 2 Nov 2011 20:52:28 +0000
Leonidas Spyropoulos <artafinde@gmail.com> wrote:
> This might interest you.
Thanks
> ---------- Forwarded message ----------
> From: Ilya Dryomov <idryomov@gmail.com>
> Date: Wed, Nov 2, 2011 at 8:42 PM
> Subject: Re: [PATCH] Btrfs-progs: mention libattr dependency in INSTA=
LL file
> To: linux-btrfs@vger.kernel.org
> Cc: Chris Mason <chris.mason@oracle.com>, Hugo Mills <hugo@carfax.org=
=2Euk>
>=20
>=20
> On Wed, Nov 02, 2011 at 05:14:33PM +0200, Ilya Dryomov wrote:
> > Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
> > ---
> > =C2=A0INSTALL | =C2=A0 =C2=A03 ++-
> > =C2=A01 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/INSTALL b/INSTALL
> > index 6afbd90..11c388b 100644
> > --- a/INSTALL
> > +++ b/INSTALL
> > @@ -19,7 +19,8 @@ insmod btrfs.ko
> >
> > =C2=A0The Btrfs utility programs require libuuid to build. =C2=A0Th=
is can be found
> > =C2=A0in the e2fsprogs sources, and is usually available as libuuid=
or
> > -e2fsprogs-devel from various distros.
> > +e2fsprogs-devel from various distros. =C2=A0The other dependency i=
s libattr
> > +(libattr1-dev in Debian-based distros).
> >
> > =C2=A0Building the utilities is just make ; make install. =C2=A0The=
programs go
> > =C2=A0into /usr/local/bin. =C2=A0The mains commands available are:
> > --
> > 1.7.6.3
I see. I did check the INSTALL file when I first had the error but it
didn't mention any dependencies. Incidentally, I get libuuid from
util-linux.
>=20
> Scratch that, it seems it's indeed not needed. =C2=A0The thing is tha=
t every
> time a set up a new test machine I have to install libattr1-dev, but =
I
> never looked into it in detail.
>=20
> So libattr1-dev is needed because mkfs includes attr/xattr.h to be ab=
le
> to create FS from image with extended attributes. =C2=A0I think it's =
safe to
> change attr/xattr.h include to sys/xattr.h and thus get rid of this
> build dependency. =C2=A0(attr/xattr.h seems to be there for compatibi=
lity
> with SGI IRIX)
>=20
> I built mkfs with sys/xattr.h and created FS from directory containin=
g
> files with xattrs, it worked.
It does work, I used it to format the root partition I'm booted into at
the moment. But as I said before, I don't use any extended attributes.
It would be nice to have the choice and not be expected to install
libattr.
Thanks,
Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-02 22:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 15:14 [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file Ilya Dryomov
2011-11-02 16:39 ` Helmut Hullen
2011-11-02 20:42 ` Ilya Dryomov
[not found] ` <CAAeznTp=oSUK_rv2jsHwNzQzncqyLSoyEnYPTcuBRMqyPo56zg@mail.gmail.com>
2011-11-02 22:58 ` Fwd: " Andrew Benton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).