int location_flags;
int pending_read, pending_write;
- // If the object is not yet flushed to cloud storage but is written to a
- // journal file locally, a reference to that journal file so that we can
- // keep the dirty_refs count updated. When the object is deleted or
- // becomes clean, decrement the dirty_refs counter of the journal file and
- // set this pointer to NULL.
- BlueSkyCacheFile *dirty_journal;
-
// A stable identifier for the object (only changes when authenticated data
// is written out, but stays the same when the in-cloud cleaner relocates
// the object).
BlueSkyLog *log;
gboolean fetching, ready; // Cloud data: downloading or ready for use
int64_t atime; // Access time, for cache management
-
- /* Journal: Count of objects which are not yet committed to cloud storage
- * but need to be; a non-zero value prevents the journal file from being
- * deleted. */
- gint dirty_refs;
};
BlueSkyLog *bluesky_log_new(const char *log_directory);