Re: [PATCH] Fix /dev to /sys node name translation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 27, 2015 at 03:12:08PM +0200, Stanislav Brabec wrote:
>  include/sysfs.h | 20 +++++++++++++++++++-
>  lib/sysfs.c     |  8 ++++++--
>  2 files changed, 25 insertions(+), 3 deletions(-)

 Applied, thanks.

>  static inline void sysfs_devname_to_dev_name (char *name)
> +static inline void sysfs_dev_name_to_devname (char *name)

 but I have renamed to

     sysfs_devname_sys_to_dev()
     sysfs_devname_dev_to_sys()

 because the original names have been too tricky :-)

 I have also changed some thing in sysfs.c, it would be nice if we can
 keep the crazy sysfs devnames (with '!') really only in sysfs specific
 code and externally provide regular device names.

 Please, test it -- especially lsblk.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux