On Wed 25-05-11 15:44:18, Jan Safranek wrote:
> On 05/25/2011 03:43 PM, Michal Hocko wrote:
> > On Wed 25-05-11 15:30:16, Dhaval Giani wrote:
> >> On Fri, May 20, 2011 at 4:42 PM, Michal Hocko <mho...@suse.cz> wrote:
> >>> On Fri 20-05-11 16:41:27, Michal Hocko wrote:
> >>>> On Fri 20-05-11 14:25:17, Jan Safranek wrote:
> >>>>> On 05/19/2011 09:37 PM, Michal Hocko wrote:
> >>>> What about this?
> >>>
> >>> I am not able to link with this patch because of the prelink magic:
> >>> cgcreate.o: In function `main':
> >>> /mnt/share/devel/miso/libcg/src/tools/cgcreate.c:314: undefined reference 
> >>> to `cg_owner_mask_chmod_recursive'
> >>> collect2: ld returned 1 exit status
> >>>
> >>> How should I do this properly?
> >>
> >> I missed this email. Let me take a look at the patches, and suggest
> >> something. Though Jan is the resident expert of Makefile magic :)
> > 
> > I was about to copy&paste what is done for cg_chmod_recursive but then I
> > thought that there might be some generator for that...
> 
> You must add cg_owner_mask_chmod_recursive to libcgroup.map. It has
> nothing to do with Makefile magic.

Works just fine. Thanks! I suspected something like that and I admit I
was too lazy to read through doc which describes this for sure.
---
Here is the missing part of the patch to link properly:

diff --git a/src/libcgroup.map b/src/libcgroup.map
index 2a3439f..47c1f45 100644
--- a/src/libcgroup.map
+++ b/src/libcgroup.map
@@ -96,3 +96,7 @@ CGROUP_0.37 {
        cgroup_read_value_end;
        cg_chmod_recursive;
 } CGROUP_0.36;
+
+CGROUP_0.38 {
+       cg_owner_mask_chmod_recursive;
+} CGROUP_0.37;

-- 
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to