Mmsg(cmd, "SELECT VolSessionId,VolSessionTime,"
"PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,"
"Type,Level,ClientId,Job.Name,PriorJobId,RealEndTime,JobId,FileSetId,"
-"SchedTime,RealStartTime,ReadBytes,HasBase,PurgedFiles,PriorJob,Comment,Reviewed,Client.Name AS Client,isVirtualFull,WriteStorageId,LastReadstorageId "
+"SchedTime,RealStartTime,ReadBytes,HasBase,PurgedFiles,PriorJob,Comment,"
+"Reviewed,Client.Name AS Client, isVirtualFull,WriteStorageId,LastReadstorageId,StatusInfo,LastReadDevice,WriteDevice,Encrypted "
"FROM Job WHERE Job='%s'", esc);
} else if (jr->PriorJob[0]) {
Mmsg(cmd, "SELECT VolSessionId,VolSessionTime,"
"PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,"
"Type,Level,ClientId,Name,PriorJobId,RealEndTime,JobId,FileSetId,"
-"SchedTime,RealStartTime,ReadBytes,HasBase,PurgedFiles,PriorJob,Comment,Reviewed,Client.Name AS Client,isVirtualFull,WriteStorageId,LastReadstorageId "
+"SchedTime,RealStartTime,ReadBytes,HasBase,PurgedFiles,PriorJob,Comment,"
+"Reviewed,Client.Name AS Client,isVirtualFull,WriteStorageId,LastReadstorageId,StatusInfo,LastReadDevice,WriteDevice,Encrypted "
"FROM Job WHERE PriorJob='%s' ORDER BY Type ASC LIMIT 1", esc);
} else {
Mmsg0(errmsg, _("No Job found\n"));
"Type,Level,ClientId,Name,PriorJobId,RealEndTime,JobId,FileSetId,"
// 18 19 20 21 22 23 24 25 26
"SchedTime,RealStartTime,ReadBytes,HasBase,PurgedFiles,PriorJob,Comment,Reviewed,Client.Name AS Client,"
-// 27 28 29 30 31 32
-"isVirtualFull,WriteStorageId,LastReadStorageId,StatusInfo,LastReadDevice,WriteDevice "
+// 27 28 29 30 31 32 33
+"isVirtualFull,WriteStorageId,LastReadStorageId,StatusInfo,LastReadDevice,WriteDevice,Encrypted "
"FROM Job WHERE JobId=%s",
edit_int64(jr->JobId, ed1));
}
bstrncpy(jr->StatusInfo, NPRTB(row[30]), sizeof(jr->StatusInfo));
bstrncpy(jr->LastReadDevice, NPRTB(row[31]), sizeof(jr->LastReadDevice));
bstrncpy(jr->WriteDevice, NPRTB(row[32]), sizeof(jr->WriteDevice));
+ jr->Encrypted = str_to_int64(row[33]);
sql_free_result();
bdb_unlock();
"ClientId=%u,JobBytes=%s,ReadBytes=%s,JobFiles=%u,JobErrors=%u,VolSessionId=%u,"
"VolSessionTime=%u,PoolId=%u,FileSetId=%u,JobTDate=%s,"
"RealEndTime='%s',PriorJobId=%s,HasBase=%u,PurgedFiles=%u,PriorJob='%s',"
-"Rate=%.1f,CompressRatio=%.1f,WriteStorageId=%s,LastReadStorageId=%s,StatusInfo='%s',LastReadDevice='%s',WriteDevice='%s' WHERE JobId=%s",
+"Rate=%.1f,CompressRatio=%.1f,WriteStorageId=%s,LastReadStorageId=%s,StatusInfo='%s',"
+"LastReadDevice='%s',WriteDevice='%s',Encrypted=%d WHERE JobId=%s",
(char)(jr->JobStatus), dt, jr->ClientId, edit_uint64(jr->JobBytes, ed1),
edit_uint64(jr->ReadBytes, ed4),
jr->JobFiles, jr->JobErrors, jr->VolSessionId, jr->VolSessionTime,
rdt, PriorJobId, jr->HasBase, jr->PurgedFiles, jr->PriorJob,
jr->Rate, jr->CompressRatio, edit_uint64(jr->WriteStorageId, ed5),
edit_uint64(jr->LastReadStorageId, ed6), esc1, esc2, esc3,
+ jr->Encrypted,
edit_int64(jr->JobId, ed3));
stat = UpdateDB(jcr, cmd, false);