Re: cdcontrol no longer needs 'c' partition?

From: Craig Rodrigues <rodrigc_at_crodrigues.org>
Date: Thu, 21 Aug 2003 18:52:36 -0400
On Sun, Aug 17, 2003 at 11:27:23PM +0200, Poul-Henning Kamp wrote:
> 
> Yes, the 'a' and 'c' partitions on CD drives are bogus, but this
> has nothing directly to do with GEOM, it is only a sideeffect
> of the semantic cleanups that went ahead of GEOM.
> 
> The patch looks good to me, but I'd like somebody to test it
> before it gets committed.  Any takers ?


Well, I tested it and it worked for me. :)




> >--- src/usr.sbin/cdcontrol/cdcontrol.c.orig	Sun Aug 17 17:25:46 2003
> >+++ src/usr.sbin/cdcontrol/cdcontrol.c	Sun Aug 17 17:27:49 2003
> >_at__at_ -52,10 +52,6 _at__at_
> > #  define DEFAULT_CD_DRIVE  "/dev/cd0"
> > #endif
> > 
> >-#ifndef DEFAULT_CD_PARTITION
> >-#  define DEFAULT_CD_PARTITION  "c"
> >-#endif
> >-
> > #define CMD_DEBUG	1
> > #define CMD_EJECT	2
> > #define CMD_HELP	3
> >_at__at_ -1248,11 +1244,6 _at__at_
> > 	}
> > 
> > 	fd = open (devbuf, O_RDONLY);
> >-
> >-	if (fd < 0 && errno == ENOENT) {
> >-		strcat (devbuf, DEFAULT_CD_PARTITION);
> >-		fd = open (devbuf, O_RDONLY);
> >-	}
> > 
> > 	if (fd < 0) {
> > 		if (errno == ENXIO) {
> >--- src/usr.sbin/cdcontrol/cdcontrol.1.orig	Sun Aug 17 17:25:39 2003
> >+++ src/usr.sbin/cdcontrol/cdcontrol.1	Sun Aug 17 17:26:27 2003
> >_at__at_ -185,10 +185,10 _at__at_
> > .Ev CDROM .
> > .El
> > .Sh FILES
> >-.Bl -tag -width ".Pa /dev/mcd0c" -compact
> >-.It Pa /dev/cd0c
> >-.It Pa /dev/mcd0c
> >-.It Pa /dev/acd0c
> >+.Bl -tag -width ".Pa /dev/mcd0" -compact
> >+.It Pa /dev/cd0
> >+.It Pa /dev/mcd0
> >+.It Pa /dev/acd0
> > .El
> > .Sh AUTHORS
> > .An Jean-Marc Zucconi
> >
> >
> >
> >
> >-- 
> >Craig Rodrigues        
> >http://crodrigues.org
> >rodrigc_at_crodrigues.org
> >_______________________________________________
> >freebsd-current_at_freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> >
> 
> -- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe    
> Never attribute to malice what can adequately be explained by incompetence.

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc_at_crodrigues.org
Received on Thu Aug 21 2003 - 13:52:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:19 UTC