src/filed/fd_snapshot.c
int support_snapshot(fs_device *vol) {
      arg_parser cmd;
      status = 0;

      reset();
      set_device(vol->device);
      set_mountpoint(vol->mountpoint);
      set_fstype(vol->fstype);

      if (!do_command("support", &cmd)) {
         goto bail_out;
      }
      scan_arg(&cmd);

   bail_out:
      Dmsg2(DT_SNAPSHOT|50, "%s snapshot support status=%d\n", vol->mountpoint, status);
      return status;
   }
/* Call the snapshot backend to know if we can snapshot the current FS */
Call the snapshot backend to know if we can snapshot the current FS
Call the snapshot backend to know if we can snapshot the current FS
int support_snapshot(fs_device *vol) {
      arg_parser cmd;
      status = 0;
      reset();
      set_device(vol->device);
      set_mountpoint(vol->mountpoint);
      set_fstype(vol->fstype);
      if (!do_command("support", &cmd)) {
         goto bail_out;
      }
      scan_arg(&cmd);
   bail_out:
      Dmsg2(DT_SNAPSHOT|50, "%s snapshot support status=%d\n", vol->mountpoint, status);
      return status;
   }
int support_snapshot ( fs_device * vol ) { arg_parser cmd ; status = 0 ; reset ( ) ; set_device ( vol -> device ) ; set_mountpoint ( vol -> mountpoint ) ; set_fstype ( vol -> fstype ) ; if ( ! do_command ( " " , & cmd ) ) { goto bail_out ; } scan_arg ( & cmd ) ; bail_out : Dmsg2 ( DT_SNAPSHOT | 50 , " \n " , vol -> mountpoint , status ) ; return status ; }
Call the snapshot backend to know if we can snapshot the current FS
Call the snapshot backend to know if we can snapshot the current FS