Date: Sun, 26 Nov 2006 18:53:58 -0700 From: Scott Long <scottl@samsco.org> To: Danny Braniss <danny@cs.huji.ac.il> Cc: freebsd-scsi@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: iSCSI/shutdown advice needed Message-ID: <456A4536.2040904@samsco.org> In-Reply-To: <E1GnHNC-000C65-4j@cs1.cs.huji.ac.il> References: <E1GnHNC-000C65-4j@cs1.cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
Danny Braniss wrote: > hi, > I'm trying to finish up the iSCSI initiator, > and need some advice. To shutdown the initiator, I > need to: > 1- close down the CAM-peripherals, (ie da) > 2- empty up all pending iSCSI transactions > 3- close the tcp connection > 2 & 3 I can handle, it's 1 that im stuck. > Q: how can I call the peripheral close function, or is there > some CAM command? > I tried > xpt_async(AC_LOST_DEVICE, isp->cam_path, NULL); > but this it far to drastic, and actually will cause panic > if the device is still mounted. > > danny > UFS doesn't handle devices going away unexpectedly. Fixing it involves massive changes to both UFS and the VM system. However, sending the AC_LOST_DEVICE is probably the right thing to do. Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?456A4536.2040904>