cmdgen_mountall.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "cmdgen_include.h"
#define MNTALL_CMD "/usr/sbin/mountall"
#define FSTYPE_FLAG "-F"
#define LOCAL_FLAG "-l"
#define REMOTE_FLAG "-r"
#define SPACE " "
/*
* Public methods
*/
/*
* The -g flag is a project-private interface for pxfs and is not documented in
* the mountall man page. Therefore, we will not support it with this public
* interface.
*/
/*
* Method: cmdgen_mountall
*
* Description: Forms the mountall command with the options given.
*
* Parameters:
* - CCIMPropertyList *paramList - The property list containing the
* options to form the mountall command.
* - int *errp - The error indicator. Upon error, this will be set to a
* value != 0.
*
* Returns:
* - char * - The mountall command.
* - NULL if an error occurred.
*/
char *
int cmdLen;
*errp = 0;
return (NULL);
}
/*
* In parameters are as follows:
* 1. String fstype,
* 2. Boolean onlyLocalFileSystems,
* 3. Boolean onlyRemoteFileSystems,
* 4. String fstable
*
* They are expected to always be in this order in the property list.
*/
/*
* Check if a file system type was passed in. If one was we will
* use this in forming the command.
*/
/*
* Add -F <fstype> to the command
*/
return (NULL);
}
}
/*
* Add the -l flag to the command.
*/
return (NULL);
}
SPACE, LOCAL_FLAG);
}
}
/*
* Add the -r flag to the command.
*/
return (NULL);
}
}
}
/*
* Add the file to the command.
*/
return (NULL);
}
}
/*
* The caller must free the memory allocated to the return value
* using free().
*/
return (cmd);
} /* cmdgen_mountall */