Imported Upstream version 3.2.0
[debian/amanda] / server-src / holding.h
index acebfd048aef6121c9b1a22d2e0e6ada61487ed4..d8f992ac219e7a8f914d0be2fe1efb5357d9dfb9 100644 (file)
  *
  * Example:
  *
- * /data/holding                                     <-- holding disk
- * /data/holding/200703061234                        <-- holding dir
- * /data/holding/200703061234/videoserver._video_a   <-- holding file,
-                                                         holding file chunk
- * /data/holding/200703061234/videoserver._video_a.1 <-- holding file chunk
+ * /data/holding                                       <-- holding disk
+ * /data/holding/20070306123456                        <-- holding dir
+ * /data/holding/20070306123456/videoserver._video_a   <-- holding file,
+                                                           holding file chunk
+ * /data/holding/20070306123456/videoserver._video_a.1 <-- holding file chunk
  *
  */
 
@@ -50,7 +50,6 @@
 #define HOLDING_H
 
 #include "amanda.h"
-#include "diskfile.h"
 #include "fileheader.h"
 
 /* Get a list of holding disks.  This is equivalent to 
@@ -83,8 +82,8 @@ GSList *
 holding_get_file_chunks(char *hfile);
 
 /* Get a list of holding files that should be flushed, optionally
- * matching only certain datestamps.  This function filters out
- * files for host/disks that are no longer in the disklist.
+ * matching only certain datestamps.  This function does *not*
+ * match the dumps against the disklist.
  *
  * @param dateargs: GSList of datestamps expressions to dump, or NULL 
  * for all
@@ -110,7 +109,7 @@ holding_get_all_datestamps(void);
  * @param holding_file: full pathname of holding file
  * @param strip_headers: if true, don't count the headers in the
  * total size
- * @returns: total size of the holding file, or -1 in an error
+ * @returns: total size in kbytes of the holding file, or -1 in an error
  */
 off_t
 holding_file_size(char *holding_file,
@@ -160,6 +159,14 @@ holding_cleanup(corrupt_dle_fn corrupt_dle,
  * application-specific support
  */
 
+/* Set the orig_size in the header
+ *
+ * @param holding_file: full pathname of holding file.
+ * @param orig_size: the size.
+ */
+void
+holding_set_origsize(char *holding_file, off_t orig_size);
+
 /* Rename holding files from the temporary names used during
  * creation.
  *