From owner-freebsd-scsi Thu Jul 27 16:40:17 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 7C19337BB6B; Thu, 27 Jul 2000 16:40:04 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id RAA87686; Thu, 27 Jul 2000 17:38:39 -0600 (MDT) (envelope-from ken) Date: Thu, 27 Jul 2000 17:38:39 -0600 From: "Kenneth D. Merry" To: John Reynolds~ Cc: emulation@FreeBSD.ORG, scsi@FreeBSD.ORG Subject: Re: more VMware quirks/questions - scsi CD-ROM -> emulated ATAPI Message-ID: <20000727173838.A87609@panzer.kdm.org> References: <14720.37288.299262.35678@whale.home-net> <20000727170101.B87100@panzer.kdm.org> <14720.50260.568637.275395@hip186.ch.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <14720.50260.568637.275395@hip186.ch.intel.com>; from jreynold@sedona.ch.intel.com on Thu, Jul 27, 2000 at 04:23:00PM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Jul 27, 2000 at 16:23:00 -0700, John Reynolds~ wrote: > [ On Thursday, July 27, Kenneth D. Merry wrote: ] > > > > Yes, it's pretty much the same problem -- sysinstall thinks the device > > isn't there if it can't open it. In fact, the problem is just that you > > don't have a disk in it. > > > > I'm sure other people have the same problem, since the cd(4) driver acts > > the same way for any drive when there is no media present. > > could this be changed maybe with a sysctl variable or something, or is there a > fundamental reason why it "should" work this way? Well, we have to have the CD size and blocksize in order to complete the open call. (That information goes into the faked-up disklabel that allows the device to be mounted.) We can't get that information without a CD in the drive. (The SCSI READ CAPACITY command won't succeed without a CD in the drive.) > > There may be a way to do something different, but you'd have to look into > > the 'vmmon' module to figure it out. > > > > What is the vmmon module, anyway? Where is the source? (I don't know much > > about vmware.) > > http://www.mindspring.com/~vsilyaev/vmware/files/ > > vmmon-freebsd-0.97-b1.tar.gz is the "latest" that the port fetches. This is > freebsd-only code plus a patch for the vmmon code from VMware. > > So far, I'm pretty happy with it--I need to squash a few more bugs and figure > a few more things out about it, but they might actually get my $$$ for this > one ;-) I looked through the source briefly, and I found some code in linux_emu.c that translates Linux CD ioctls to FreeBSD CD ioctls, but I didn't find any wrappers for open(2). You'll probably need to find someone familiar with vmware to fix the problem. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message