lkml.org 
[lkml]   [2007]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SLUB sysfs support
On Thu, 27 Dec 2007, Al Viro wrote:

> On Thu, Dec 27, 2007 at 03:53:43PM -0800, Christoph Lameter wrote:
> > On Thu, 27 Dec 2007, Christoph Lameter wrote:
> >
> > > > a) remove symlink when slab goes away
> > >
> > > Ok. Need to think about how to code that.
> >
> > How do I iterate over all symlinks in /sys/kernel/slab/*?
> >
> > I remember trying to do it before and not being able to find a sysfs
> > method for that.
>
> What the hell do you need that for? You have an obvious moment when
> /sys/kernel/slab/cache_name -> <whatever> should be gone - it's when
> you remove the slab called cache_name. And at that point you don't
> need to iterate over anything - you have the exact name, for fsck sake...
>
> Why would you want these symlinks to stick around for longer than that?

/sys/kernel/slab/cache_name is a real directory but then there are the
aliases in /sys/kernel/slab/alias_name pointing to that directory that
also have to be removed.

So I need to scan for symlinks in /sys/kernel/slab/* pointing to
/sys/kernel/slab/cache_name.



\
 
 \ /
  Last update: 2007-12-28 01:05    [W:0.119 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site