LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: sleeve

[==LFS精华系列==]实现 devfs

[复制链接]
发表于 2004-1-28 01:52:30 | 显示全部楼层
这里推荐两则关于devfs的资料:
http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html
devfs的官方FAQ,尤其是Operational issues (essential reading) 部分有简洁扼要的说明。

另外,linuxfromscratch的邮件存档中也有很好的补充。
http://archives.linuxfromscratch ... 3-April/001612.html
例如,对于fstab的问题,文中提及

  1. When you create the /etc/fstab file, make sure to use the new device names.
  2.   +Do not use the old device names, which are only present if you run devfsd in
  3.   +compatibility mode. These symlinks may not always be present. You can create the
  4.   +device names as presented by the kernel, which look like
  5.   +/dev/ide/host0/bus0/target0/lun0/part5. You can also use the symlinks which are
  6.   +automatically generated by the kernel which look like /dev/discs/disc0/part5.
  7.   +Note that these symlinks are always present if you use devfs without the devfs
  8.   +daemon, so you can safely apply them in your configuration files.

复制代码
发表于 2004-1-28 03:33:47 | 显示全部楼层
devfs可以进垃圾堆了。呵呵
发表于 2004-1-28 21:38:12 | 显示全部楼层
最初由 penny 发表
devfs可以进垃圾堆了。呵呵


http://kerneltrap.org/node/view/1893

There are two mails below.

  1. rom: Andrew Morton [email blocked]
  2. Subject: Re: DevFS vs. udev
  3. Date: Tue, 23 Dec 2003 18:38:20 -0800

  4. Ian Kent [email blocked] wrote:
  5. >
  6. > However, if Andrew wants it gone from the kernel there is no point.

  7. I do not.  devfs shall remain in 2.6 and shall continue to be supported.

  8. Richard has disappeared but Andrey Borzenkov understands devfs well and
  9. performed valuable work on it during 2.5 development.


  10. Nor would I recommend that devfs be removed early from 2.7.x.  We should
  11. wait until the proposed udev/sysfs solutions have matured in 2.6 and have
  12. proven themselves in the field.  Only then will we be in a position to
  13. confirm that devfs can be removed without causing some people unacceptable
  14. levels of grief.    There is no rush.


  15. And yes, there are architectural/cleanliness issues with devfs.  In 2.5
  16. Adam Richter totally reinventing devfs's internals, basing it around the
  17. ramfs infrastructure.  If we elect to retain devfs in 2.8 then that effort
  18. should be resurrected.


  19. Now would be a good time for someone to feed the whole thing through indent
  20. though.
复制代码


  1. From: Greg KH [email blocked]
  2. Subject: Re: DEVFS is very good compared to UDEV
  3. Date: Tue, 23 Dec 2003 15:14:57 -0800

  4. On Tue, Dec 23, 2003 at 03:00:43PM -0800, Hua Zhong wrote:
  5. > > So I cannot comment over _why_ defvs is unmaintained, but that is not
  6. > > the point: either way, it stands that devfs is unmaintained.  
  7. > > That is a problem in and of itself.
  8. >
  9. > It's just my impression that around that time core developers had
  10. > decided to replace devfs with a new model. If I were in ths same shoes,
  11. > I would probably also stop maintaining it. Then 2 years later when
  12. > somebody asks, the reason to replace my code shouldn't be
  13. > "unmaintained". Just the technical reasons should be enough. :-)

  14. Back in June of 2001, Pat Mochel and I talked with Richard about this
  15. whole driver model, sysfs, and udev design at the 2001 kernel summit,
  16. after presenting it to all of the other kernel developers.  He had some
  17. objections, but was very aware of what we wanted to do.

  18. It's not like udev and this whole sysfs / driver model implementation
  19. snuck into the kernel late at night when no one else was looking, and
  20. pounced on all of the poor, unsuspecting devfs users, eating them for a
  21. early morning snack.


  22. greg k-h

复制代码
发表于 2004-1-28 22:19:33 | 显示全部楼层
kernel support没用啊,好多设备不support.
发表于 2004-1-29 12:48:32 | 显示全部楼层
最初由 tram 发表
kernel support没用啊,好多设备不support.


tram老大和我们谈谈您的udev使用经验或心得啊。
发表于 2004-1-29 13:51:34 | 显示全部楼层
我也没有用udev啊,呵呵,我觉得这些新技术还是要成熟了再用比较好。比如devfs吧,我就一直觉得没有优越到哪里,/dev下面节点是少了,不过这无关紧要啊,多几个怕什么。如果要少,干脆按照硬件一个节点一个节点自己做好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表