-/* This is the file nfs.c for allmaint, the SMS client that allows
- * a user to maintaint most important parts of the SMS database.
- * It Contains: The nfs maintanance code.
+/* This is the file nfs.c for the SMS Client, which allows a nieve
+ * user to quickly and easily maintain most parts of the SMS database.
+ * It Contains: All functions for manipulating NFS Physical directories.
- if ( (stat = sms_query("get_nfsphys", 2, args,
- StoreInfo, (char *) &elem)) != SMS_SUCCESS)
+ if ( (stat = do_sms_query("get_nfsphys", 2, args,
+ StoreInfo, (char *) &elem)) != SMS_SUCCESS)
com_err(program_name, stat, " in ShowNFSServices.");
free(args[1]); /* prevents memory leaks. */
com_err(program_name, stat, " in ShowNFSServices.");
free(args[1]); /* prevents memory leaks. */
- if ( (stat = sms_query("get_nfsphys", 2, args,
- NullFunc, (char *) NULL)) == SMS_SUCCESS)
+ if ( (stat = do_sms_query("get_nfsphys", 2, args,
+ NullFunc, (char *) NULL)) == SMS_SUCCESS)
Put_message("This service already exists.");
if (stat != SMS_NO_MATCH)
com_err(program_name, stat, " in get_nfsphys.");
Put_message("This service already exists.");
if (stat != SMS_NO_MATCH)
com_err(program_name, stat, " in get_nfsphys.");
- if ((stat = sms_query("add_nfsphys", CountArgs(add_args), add_args,
- Scream, (char *) NULL)) != 0)
+ if ((stat = do_sms_query("add_nfsphys", CountArgs(add_args), add_args,
+ Scream, (char *) NULL)) != 0)
- if ((stat = sms_query("update_nfsphys", CountArgs(args), args,
- Scream, (char *)NULL)) != SMS_SUCCESS)
+ if ((stat = do_sms_query("update_nfsphys", CountArgs(args), args,
+ Scream, (char *)NULL)) != SMS_SUCCESS)
- if ( (stat = sms_query("get_nfsphys", 2, args,
- StoreInfo, (char *) &elem)) != SMS_SUCCESS) {
+ if ( (stat = do_sms_query("get_nfsphys", 2, args,
+ StoreInfo, (char *) &elem)) != SMS_SUCCESS) {
- switch(stat = sms_query("get_filesys_by_nfsphys", CountArgs(args),
- args, StoreInfo, &elem)) {
+ switch(stat = do_sms_query("get_filesys_by_nfsphys", CountArgs(args),
+ args, StoreInfo, (char *)&elem)) {
- if ( (stat = sms_query("delete_nfsphys", 2, info, Scream,
- (char *) NULL )) != SMS_SUCCESS)
+ if ( (stat = do_sms_query("delete_nfsphys", 2, info, Scream,
+ (char *) NULL )) != SMS_SUCCESS)
com_err(program_name, stat, " in DeleteNFSService");
else
Put_message("Physical Filesystem Deleted.");
com_err(program_name, stat, " in DeleteNFSService");
else
Put_message("Physical Filesystem Deleted.");
- switch(stat = sms_query("get_nfsphys", 2, args,
- StoreInfo, (char *) &elem)) {
+ switch(stat = do_sms_query("get_nfsphys", 2, args,
+ StoreInfo, (char *) &elem)) {