Re: [PATCH] [sysfs]: make readlink result shorter when the symlink and its target shared some base sysfs subdirectory

2007-11-01 Thread Kay Sievers
On Thu, 2007-11-01 at 19:59 +0100, Kay Sievers wrote: > On Oct 31, 2007 3:34 PM, Greg KH <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 31, 2007 at 06:34:20PM +0800, Denis Cheng wrote: > > > this is especially useful after /sys/slab introduced, for example: > > > > > > $ ls -l /sys/slab/mm_struct > > >

Re: [PATCH] [sysfs]: make readlink result shorter when the symlink and its target shared some base sysfs subdirectory

2007-11-01 Thread Kay Sievers
On Oct 31, 2007 3:34 PM, Greg KH <[EMAIL PROTECTED]> wrote: > On Wed, Oct 31, 2007 at 06:34:20PM +0800, Denis Cheng wrote: > > this is especially useful after /sys/slab introduced, for example: > > > > $ ls -l /sys/slab/mm_struct > > lrwxrwxrwx 1 root root 0 2007-10-31 17:40 /sys/slab/mm_struct ->

Re: [PATCH] [sysfs]: make readlink result shorter when the symlink and its target shared some base sysfs subdirectory

2007-10-31 Thread rae l
On 10/31/07, Greg KH <[EMAIL PROTECTED]> wrote: > On Wed, Oct 31, 2007 at 06:34:20PM +0800, Denis Cheng wrote: > > this is especially useful after /sys/slab introduced, for example: > > > > $ ls -l /sys/slab/mm_struct > > lrwxrwxrwx 1 root root 0 2007-10-31 17:40 /sys/slab/mm_struct -> :448 > >

Re: [PATCH] [sysfs]: make readlink result shorter when the symlink and its target shared some base sysfs subdirectory

2007-10-31 Thread Greg KH
On Wed, Oct 31, 2007 at 06:34:20PM +0800, Denis Cheng wrote: > this is especially useful after /sys/slab introduced, for example: > > $ ls -l /sys/slab/mm_struct > lrwxrwxrwx 1 root root 0 2007-10-31 17:40 /sys/slab/mm_struct -> :448 > > instead of: > > $ ls -l /sys/slab/mm_struct > lrwxrwxr

[PATCH] [sysfs]: make readlink result shorter when the symlink and its target shared some base sysfs subdirectory

2007-10-31 Thread Denis Cheng
this is especially useful after /sys/slab introduced, for example: $ ls -l /sys/slab/mm_struct lrwxrwxrwx 1 root root 0 2007-10-31 17:40 /sys/slab/mm_struct -> :448 instead of: $ ls -l /sys/slab/mm_struct lrwxrwxrwx 1 root root 0 2007-10-31 17:40 /sys/slab/mm_struct -> ../slab/:448 Sig