Skip to contentSkip to conversation

RADOS extensions directory

DISCUSSION Pascal de Bruijn 2 participants 2 messages Nov 5, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

In light of #cephday I noticed something that struck me as odd. The presenation listed the following as the RADOS extensions directory (if I recall correctly):

/var/lib/rados/*.so

However, it's very atypical to have shared libraries in /var. As far as I know /var/lib is typically used for persistent (non-executable) storage (think dpkg for example).

So I'm guessing /usr/lib/rados/*.so would probably be a more suitable home for the RADOS extensions.

While this isn't the most important thing in the world, I guess it makes sense to change this now as it's not a commonly used feature yet (read there are no third party packages depending on this location yet).

In addition when submitting the code for inclusion into Debian/Fedora, I wouldn't be surprised if they had similar "objections".

At #cephday I briefly spoke to Wido about this, if I recall correctly he confirmed this was sortof a known issue. If that's correct please view this e-mail just as a reminder or something.

Regards,
Pascal de Bruijn

#1 lore raw
Quoted 7 lines · Pascal de Bruijn

Hi,

In light of #cephday I noticed something that struck me as odd. The presenation listed the following as the RADOS extensions directory (if I recall correctly):

/var/lib/rados/*.so

/var/lib/rados-classes/*.so

It's handled by this configuration option:

OPTION(osd_class_dir, OPT_STR, CEPH_LIBDIR "/rados-classes")

I think however that Sage's slide was wrong, my configuration is:

-DCEPH_LIBDIR="/usr/lib"

On my system I also have /usr/lib/rados-classes/*.so

It might have been a old build issue, since I also recall it being in /var/lib

Quoted 8 lines

However, it's very atypical to have shared libraries in /var. As far as I know /var/lib is typically used for persistent (non-executable) storage (think dpkg for example).

So I'm guessing /usr/lib/rados/*.so would probably be a more suitable home for the RADOS extensions.

Quoted 7 lines

While this isn't the most important thing in the world, I guess it makes sense to change this now as it's not a commonly used feature yet (read there are no third party packages depending on this location yet).

In addition when submitting the code for inclusion into Debian/Fedora, I wouldn't be surprised if they had similar "objections".

Looking at debian/ceph.install it also packages /usr/lib/rados-classes.

Quoted 4 lines

At #cephday I briefly spoke to Wido about this, if I recall correctly he confirmed this was sortof a known issue. If that's correct please view this e-mail just as a reminder or something.

Seems resolved already, although I'm not sure if I would do "rados-classes"? Maybe /usr/lib/rados/classes/* ?

Wido

Quoted 6 lines

Regards,
Pascal de Bruijn
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html