* fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition if

GetTapePosition returned a non-zero partition number.
	(mtinfo_drive::create_partitions): Reinitialize to partition 0.
	Support TAPE_DRIVE_INITIATOR and TAPE_DRIVE_FIXED partitioning.
	(mtinfo_drive::set_partition): Initialize new partition.
	(mtinfo_drive::status): Readd accidentally dropped setting of mt_resid.

	* net.cc (wsock_event::prepare): Always print debug output in case
	of error.
This commit is contained in:
Corinna Vinschen
2004-03-31 12:04:07 +00:00
parent 93ba120429
commit decd3e5d72
3 changed files with 42 additions and 6 deletions

View File

@ -54,8 +54,9 @@ bool
wsock_event::prepare (int sock, long event_mask)
{
WSASetLastError (0);
if ((event = WSACreateEvent ()) != WSA_INVALID_EVENT
&& WSAEventSelect (sock, event, event_mask) == SOCKET_ERROR)
if ((event = WSACreateEvent ()) == WSA_INVALID_EVENT)
debug_printf ("WSACreateEvent: %E");
else if (WSAEventSelect (sock, event, event_mask) == SOCKET_ERROR)
{
debug_printf ("WSAEventSelect: %E");
WSACloseEvent (event);