252N/A* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 252N/A* U.S. Government Rights - Commercial software. Government users are subject 252N/A* to the Sun Microsystems, Inc. standard license agreement and applicable 252N/A* provisions of the FAR and its supplements. 252N/A* This distribution may include materials developed by third parties. Sun, 252N/A* Sun Microsystems, the Sun logo and Solaris are trademarks or registered 252N/A* trademarks of Sun Microsystems, Inc. in the U.S. and other countries. 252N/A * Build a list of disks attached to the system. if a previous list is passed 252N/A * in, delete that list before building the new list. 252N/A * Build the list of devices connected to the system. 252N/A * Currently it isn't necessary to look below the cntndn level.... 252N/A * devicenumber and the device from this string if it is one of the ones in 252N/A * Skip over any stuff at the beginning of the line before a leading 252N/A * '/' If we don't find a '/', the line is malformed and we just skip 252N/A * Find the trailing '"' in the line. If not found, we just 252N/A * Find a matching entry in the list of names from /dev/dsk. 252N/A * If no match, we're not interested. 252N/A * Extract the device number at the end of 252N/A * the line. We expect whitespace followed by 252N/A * the beginning of the currently numeric 252N/A * Should now be at the beginning of the 252N/A * device number. Point entry->dn at the 252N/A * Determine if a name is already in the list of disks. If not, insert the 252N/A * Figure out where to insert the name. The list is 252N/A * ostensibly in sorted order. 252N/A * Look through the list. While the strcmp 252N/A * value is less than the current value, 252N/A * We should now be ready to insert an 252N/A * insert at the end of the