From owner-freebsd-stable Tue Mar 24 19:17:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA21114 for freebsd-stable-outgoing; Tue, 24 Mar 1998 19:17:22 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from mail.westbend.net (ns1.westbend.net [207.217.224.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA21073; Tue, 24 Mar 1998 19:16:35 -0800 (PST) (envelope-from hetzels@mail.westbend.net) From: hetzels@mail.westbend.net Received: (from hetzels@localhost) by mail.westbend.net (8.8.8/8.8.8) id VAA18367; Tue, 24 Mar 1998 21:16:36 -0600 (CST) (envelope-from hetzels) Date: Tue, 24 Mar 1998 21:16:36 -0600 (CST) Message-Id: <199803250316.VAA18367@mail.westbend.net> To: freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Links not re-created in MAKEDEV Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk I have seen a problem with MAKEDEV for a while on both current and stable systems, in that it will not re-create links for these devices: fd0a-h, rfd0a-h, fd1a-h, rfd1a-h, ft0a, rft0a, rst0, nrst0, erst0 The error I see is: ln: {device}: file exists The following patch corrects the problem for both current and stable MAKDEV files: *** MAKEDEV.orig Thu Mar 5 08:49:36 1998 --- MAKEDEV Tue Mar 24 20:42:37 1998 *************** *** 342,409 **** # Fake BSD partitions for i in a b c d e f g h do ! ln ${name}${unit} ${name}${unit}$i ! ln r${name}${unit} r${name}${unit}$i done # User-readable and programmer-readable name sets mknod ${name}${unit}.1720 b $blk `expr $unit '*' 64 + 1` mknod r${name}${unit}.1720 c $chr `expr $unit '*' 64 + 1` ! # ln ${name}${unit}.1720 ${name}${unit}135hs21 ! # ln r${name}${unit}.1720 r${name}${unit}135hs21 mknod ${name}${unit}.1480 b $blk `expr $unit '*' 64 + 2` mknod r${name}${unit}.1480 c $chr `expr $unit '*' 64 + 2` ! # ln ${name}${unit}.1480 ${name}${unit}135hs18 ! # ln r${name}${unit}.1480 r${name}${unit}135hs18 ! # ln ${name}${unit}.1480 ${name}${unit}96hs18 ! # ln r${name}${unit}.1480 r${name}${unit}96hs18 mknod ${name}${unit}.1440 b $blk `expr $unit '*' 64 + 3` mknod r${name}${unit}.1440 c $chr `expr $unit '*' 64 + 3` ! # ln ${name}${unit}.1440 ${name}${unit}135 ! # ln r${name}${unit}.1440 r${name}${unit}135 ! # ln ${name}${unit}.1440 ${name}${unit}135ds18 ! # ln r${name}${unit}.1440 r${name}${unit}135ds18 ! # ln ${name}${unit}.1440 ${name}${unit}96ds18 ! # ln r${name}${unit}.1440 r${name}${unit}96ds18 mknod ${name}${unit}.1200 b $blk `expr $unit '*' 64 + 4` mknod r${name}${unit}.1200 c $chr `expr $unit '*' 64 + 4` ! # ln ${name}${unit}.1200 ${name}${unit}96 ! # ln r${name}${unit}.1200 r${name}${unit}96 ! # ln ${name}${unit}.1200 ${name}${unit}96ds15 ! # ln r${name}${unit}.1200 r${name}${unit}96ds15 ! # ln ${name}${unit}.1200 ${name}${unit}135ds15 ! # ln r${name}${unit}.1200 r${name}${unit}135ds15 mknod ${name}${unit}.820 b $blk `expr $unit '*' 64 + 5` mknod r${name}${unit}.820 c $chr `expr $unit '*' 64 + 5` ! # ln ${name}${unit}.820 ${name}${unit}96hs10 ! # ln r${name}${unit}.820 r${name}${unit}96hs10 ! # ln ${name}${unit}.820 ${name}${unit}135hs10 ! # ln r${name}${unit}.820 r${name}${unit}135hs10 mknod ${name}${unit}.800 b $blk `expr $unit '*' 64 + 6` mknod r${name}${unit}.800 c $chr `expr $unit '*' 64 + 6` ! # ln ${name}${unit}.800 ${name}${unit}96ds10 ! # ln r${name}${unit}.800 r${name}${unit}96ds10 ! # ln ${name}${unit}.800 ${name}${unit}135ds10 ! # ln r${name}${unit}.800 r${name}${unit}135ds10 mknod ${name}${unit}.720 b $blk `expr $unit '*' 64 + 7` mknod r${name}${unit}.720 c $chr `expr $unit '*' 64 + 7` ! # ln ${name}${unit}.720 ${name}${unit}96ds9 ! # ln r${name}${unit}.720 r${name}${unit}96ds9 ! # ln ${name}${unit}.720 ${name}${unit}135ds9 ! # ln r${name}${unit}.720 r${name}${unit}135ds9 mknod ${name}${unit}.360 b $blk `expr $unit '*' 64 + 8` mknod r${name}${unit}.360 c $chr `expr $unit '*' 64 + 8` ! # ln ${name}${unit}.360 ${name}${unit}48 ! # ln r${name}${unit}.360 r${name}${unit}48 ! # ln ${name}${unit}.360 ${name}${unit}48ds9 ! # ln r${name}${unit}.360 r${name}${unit}48ds9 chgrp operator ${name}${unit}* r${name}${unit}* ;; --- 342,409 ---- # Fake BSD partitions for i in a b c d e f g h do ! ln -f ${name}${unit} ${name}${unit}$i ! ln -f r${name}${unit} r${name}${unit}$i done # User-readable and programmer-readable name sets mknod ${name}${unit}.1720 b $blk `expr $unit '*' 64 + 1` mknod r${name}${unit}.1720 c $chr `expr $unit '*' 64 + 1` ! # ln -f ${name}${unit}.1720 ${name}${unit}135hs21 ! # ln -f r${name}${unit}.1720 r${name}${unit}135hs21 mknod ${name}${unit}.1480 b $blk `expr $unit '*' 64 + 2` mknod r${name}${unit}.1480 c $chr `expr $unit '*' 64 + 2` ! # ln -f ${name}${unit}.1480 ${name}${unit}135hs18 ! # ln -f r${name}${unit}.1480 r${name}${unit}135hs18 ! # ln -f ${name}${unit}.1480 ${name}${unit}96hs18 ! # ln -f r${name}${unit}.1480 r${name}${unit}96hs18 mknod ${name}${unit}.1440 b $blk `expr $unit '*' 64 + 3` mknod r${name}${unit}.1440 c $chr `expr $unit '*' 64 + 3` ! # ln -f ${name}${unit}.1440 ${name}${unit}135 ! # ln -f r${name}${unit}.1440 r${name}${unit}135 ! # ln -f ${name}${unit}.1440 ${name}${unit}135ds18 ! # ln -f r${name}${unit}.1440 r${name}${unit}135ds18 ! # ln -f ${name}${unit}.1440 ${name}${unit}96ds18 ! # ln -f r${name}${unit}.1440 r${name}${unit}96ds18 mknod ${name}${unit}.1200 b $blk `expr $unit '*' 64 + 4` mknod r${name}${unit}.1200 c $chr `expr $unit '*' 64 + 4` ! # ln -f ${name}${unit}.1200 ${name}${unit}96 ! # ln -f r${name}${unit}.1200 r${name}${unit}96 ! # ln -f ${name}${unit}.1200 ${name}${unit}96ds15 ! # ln -f r${name}${unit}.1200 r${name}${unit}96ds15 ! # ln -f ${name}${unit}.1200 ${name}${unit}135ds15 ! # ln -f r${name}${unit}.1200 r${name}${unit}135ds15 mknod ${name}${unit}.820 b $blk `expr $unit '*' 64 + 5` mknod r${name}${unit}.820 c $chr `expr $unit '*' 64 + 5` ! # ln -f ${name}${unit}.820 ${name}${unit}96hs10 ! # ln -f r${name}${unit}.820 r${name}${unit}96hs10 ! # ln -f ${name}${unit}.820 ${name}${unit}135hs10 ! # ln -f r${name}${unit}.820 r${name}${unit}135hs10 mknod ${name}${unit}.800 b $blk `expr $unit '*' 64 + 6` mknod r${name}${unit}.800 c $chr `expr $unit '*' 64 + 6` ! # ln -f ${name}${unit}.800 ${name}${unit}96ds10 ! # ln -f r${name}${unit}.800 r${name}${unit}96ds10 ! # ln -f ${name}${unit}.800 ${name}${unit}135ds10 ! # ln -f r${name}${unit}.800 r${name}${unit}135ds10 mknod ${name}${unit}.720 b $blk `expr $unit '*' 64 + 7` mknod r${name}${unit}.720 c $chr `expr $unit '*' 64 + 7` ! # ln -f ${name}${unit}.720 ${name}${unit}96ds9 ! # ln -f r${name}${unit}.720 r${name}${unit}96ds9 ! # ln -f ${name}${unit}.720 ${name}${unit}135ds9 ! # ln -f r${name}${unit}.720 r${name}${unit}135ds9 mknod ${name}${unit}.360 b $blk `expr $unit '*' 64 + 8` mknod r${name}${unit}.360 c $chr `expr $unit '*' 64 + 8` ! # ln -f ${name}${unit}.360 ${name}${unit}48 ! # ln -f r${name}${unit}.360 r${name}${unit}48 ! # ln -f ${name}${unit}.360 ${name}${unit}48ds9 ! # ln -f r${name}${unit}.360 r${name}${unit}48ds9 chgrp operator ${name}${unit}* r${name}${unit}* ;; *************** *** 422,429 **** 0|1|2|3) mknod ${name}${unit} b $blk `expr $unit '*' 64 + 32` mknod r${name}${unit} c $chr `expr $unit '*' 64 + 32` ! ln ${name}${unit} ${name}${unit}a ! ln r${name}${unit} r${name}${unit}a chgrp operator ${name}${unit}* r${name}${unit}* ;; *) --- 422,429 ---- 0|1|2|3) mknod ${name}${unit} b $blk `expr $unit '*' 64 + 32` mknod r${name}${unit} c $chr `expr $unit '*' 64 + 32` ! ln -f ${name}${unit} ${name}${unit}a ! ln -f r${name}${unit} r${name}${unit}a chgrp operator ${name}${unit}* r${name}${unit}* ;; *) *************** *** 586,594 **** mknod rst${unit}.ctl c $chr `expr $unit '*' 16 + $scsictl ` chmod 600 rst${unit}.ctl ! ln rst${unit}.0 rst${unit} ! ln nrst${unit}.0 nrst${unit} ! ln erst${unit}.0 erst${unit} ;; *) echo bad unit for tape in: $i --- 586,594 ---- mknod rst${unit}.ctl c $chr `expr $unit '*' 16 + $scsictl ` chmod 600 rst${unit}.ctl ! ln -f rst${unit}.0 rst${unit} ! ln -f nrst${unit}.0 nrst${unit} ! ln -f erst${unit}.0 erst${unit} ;; *) echo bad unit for tape in: $i To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message