* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
conn->oc_data.ioc_obdo1.o_valid =
OBD_MD_FLID | OBD_MD_FLTYPE | OBD_MD_FLMODE;
+ conn->oc_data.ioc_pbuf1 = (void*)1;
+ conn->oc_data.ioc_plen1 = 1;
conn->oc_data.ioc_pbuf2 = buffer;
conn->oc_data.ioc_plen2 = count;
conn->oc_data.ioc_count = count;
rc = obdio_ioctl (conn, ECHO_IOC_ENQUEUE);
if (rc == 0)
- memcpy (lh, obdo_handle (&conn->oc_data.ioc_obdo1), sizeof (*lh));
+ *lh = conn->oc_data.ioc_obdo1.o_handle;
return (rc);
}
{
obdio_iocinit (conn);
- memcpy (obdo_handle (&conn->oc_data.ioc_obdo1), lh, sizeof (*lh));
+ conn->oc_data.ioc_obdo1.o_handle = *lh;
conn->oc_data.ioc_obdo1.o_valid = OBD_MD_FLHANDLE;
return (obdio_ioctl (conn, ECHO_IOC_CANCEL));