1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

changed from using dev_link() to devfs_link()

This commit is contained in:
Marc G. Fournier 1996-04-02 04:52:03 +00:00
parent 7d12015159
commit ecd87fe6c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14992
4 changed files with 12 additions and 12 deletions

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
* $Id: fd.c,v 1.83 1996/03/31 18:04:51 joerg Exp $
*
*/
@ -773,8 +773,8 @@ fdattach(struct isa_device *dev)
fd->cdev = devfs_add_devswf(&fd_cdevsw, mynor, DV_CHR,
UID_ROOT, GID_OPERATOR, 0640,
"%s", name);
dev_linkf(fd->bdev, "fd%d", fdu);
dev_linkf(fd->cdev, "rfd%d", fdu);
devfs_link(fd->bdev, "fd%d", fdu);
devfs_link(fd->cdev, "rfd%d", fdu);
#endif /* DEVFS */
if (dk_ndrive < DK_NDRIVE) {
sprintf(dk_names[dk_ndrive], "fd%d", fdu);

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
* $Id: fd.c,v 1.83 1996/03/31 18:04:51 joerg Exp $
*
*/
@ -773,8 +773,8 @@ fdattach(struct isa_device *dev)
fd->cdev = devfs_add_devswf(&fd_cdevsw, mynor, DV_CHR,
UID_ROOT, GID_OPERATOR, 0640,
"%s", name);
dev_linkf(fd->bdev, "fd%d", fdu);
dev_linkf(fd->cdev, "rfd%d", fdu);
devfs_link(fd->bdev, "fd%d", fdu);
devfs_link(fd->cdev, "rfd%d", fdu);
#endif /* DEVFS */
if (dk_ndrive < DK_NDRIVE) {
sprintf(dk_names[dk_ndrive], "fd%d", fdu);

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
* $Id: fd.c,v 1.83 1996/03/31 18:04:51 joerg Exp $
*
*/
@ -773,8 +773,8 @@ fdattach(struct isa_device *dev)
fd->cdev = devfs_add_devswf(&fd_cdevsw, mynor, DV_CHR,
UID_ROOT, GID_OPERATOR, 0640,
"%s", name);
dev_linkf(fd->bdev, "fd%d", fdu);
dev_linkf(fd->cdev, "rfd%d", fdu);
devfs_link(fd->bdev, "fd%d", fdu);
devfs_link(fd->cdev, "rfd%d", fdu);
#endif /* DEVFS */
if (dk_ndrive < DK_NDRIVE) {
sprintf(dk_names[dk_ndrive], "fd%d", fdu);

View File

@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
* $Id: subr_diskslice.c,v 1.20 1996/03/27 18:50:01 bde Exp $
* $Id: subr_diskslice.c,v 1.21 1996/04/01 21:03:07 scrappy Exp $
*/
#include <sys/param.h>
@ -958,12 +958,12 @@ set_ds_labeldevs(dname, dev, ssp)
continue;
if (part == RAW_PART && sp->ds_bdev != NULL) {
sp->ds_bdevs[part] =
dev_linkf(sp->ds_bdev, "%s%s",
devfs_link(sp->ds_bdev, "%s%s",
dsname(dname, dkunit(dev), slice,
part, partname),
partname);
sp->ds_cdevs[part] =
dev_linkf(sp->ds_cdev, "r%s%s",
devfs_link(sp->ds_cdev, "r%s%s",
dsname(dname, dkunit(dev), slice,
part, partname),
partname);