src/filed/fd_snapshot.c
int create() {
      int ret = 0;
      arg_parser cmd;

      if (!*Name || !*Device) {
         goto bail_out;
      }

      Dmsg2(DT_SNAPSHOT, "Create Snapshot of %s %s\n", Device, Name);

      /* TODO: see if we handle multiple snapshots per call */
      if (!do_command("create", &cmd)) {
         goto bail_out;
      }

      scan_arg(&cmd);
      created = 1;

      ret = 1;

   bail_out:
      return ret;
   }
/* Create a snapshot with already given attributes
    *  Need to set Name and Device at the minimum
    */
Create a snapshot with already given attributes
Need to set Name and Device at the minimum
Create a snapshot with already given attributes Need to set Name and Device at the minimum
int create() {
      int ret = 0;
      arg_parser cmd;
      if (!*Name || !*Device) {
         goto bail_out;
      }
      Dmsg2(DT_SNAPSHOT, "Create Snapshot of %s %s\n", Device, Name);
      if (!do_command("create", &cmd)) {
         goto bail_out;
      }
      scan_arg(&cmd);
      created = 1;
      ret = 1;
   bail_out:
      return ret;
   }
int create ( ) { int ret = 0 ; arg_parser cmd ; if ( ! * Name || ! * Device ) { goto bail_out ; } Dmsg2 ( DT_SNAPSHOT , " \n " , Device , Name ) ; if ( ! do_command ( " " , & cmd ) ) { goto bail_out ; } scan_arg ( & cmd ) ; created = 1 ; ret = 1 ; bail_out : return ret ; }
Create a snapshot with already given attributes
  Need to set Name and Device at the minimum
Create a snapshot with already given attributes Need to set Name and Device at the minimum
/* TODO: see if we handle multiple snapshots per call */