boolean createSnapshot(String snapshotName,boolean isValidLunCloneSnapshot,boolean async){
  NaElement elem=new NaElement("snapshot-create");
  elem.addNewChild("volume",name);
  elem.addNewChild("snapshot",snapshotName);
  elem.addNewChild("async",Boolean.toString(async));
  elem.addNewChild("is-valid-lun-clone-snapshot",Boolean.toString(isValidLunCloneSnapshot));
  try {
    server.invokeElem(elem);
  }
 catch (  Exception e) {
    String msg="Failed to create snapshot on volume: " + name;
    log.error(msg,e);
    throw new NetAppException(msg,e);
  }
  return true;
}

boolean createSnapshot ( String snapshotName , boolean isValidLunCloneSnapshot , boolean async ) { NaElement elem = new NaElement ( "snapshot-create" ) ; elem . addNewChild ( "volume" , name ) ; elem . addNewChild ( "snapshot" , snapshotName ) ; elem . addNewChild ( "async" , Boolean . toString ( async ) ) ; elem . addNewChild ( "is-valid-lun-clone-snapshot" , Boolean . toString ( isValidLunCloneSnapshot ) ) ; try { server . invokeElem ( elem ) ; } catch ( Exception e ) { String msg = "Failed to create snapshot on volume: " + name ; log . error ( msg , e ) ; throw new NetAppException ( msg , e ) ; } return true ; }
creates a new snapshot of the volume .
