Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/libltfs/ltfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ typedef enum {
#define SYNC_EA "Sync by EA"
#define SYNC_CLOSE "Sync on close"
#define SYNC_DNO_SPACE "Dcache no space"
#define SYNC_CAPTURE_EA "Capture by EA"
#define SYNC_UNMOUNT "Unmount"
#define SYNC_UNMOUNT_NOMEM "Unmount - no memory"
#define SYNC_MOVE "Unmount - %" PRIu64
Expand Down
4 changes: 4 additions & 0 deletions src/libltfs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ static bool _xattr_is_virtual(struct dentry *d, const char *name, struct ltfs_vo
|| ! strcmp(name, "ltfs.indexVersion")
|| ! strcmp(name, "ltfs.labelVersion")
|| ! strcmp(name, "ltfs.sync")
|| ! strcmp(name, "ltfs.captureIndex")
|| ! strcmp(name, "ltfs.indexGeneration")
|| ! strcmp(name, "ltfs.indexTime")
|| ! strcmp(name, "ltfs.policyExists")
Expand Down Expand Up @@ -905,6 +906,9 @@ static int _xattr_set_virtual(struct dentry *d, const char *name, const char *va

if (! strcmp(name, "ltfs.sync") && d == vol->index->root)
ret = ltfs_sync_index(SYNC_EA, false, vol);
else if (! strcmp(name, "ltfs.captureIndex") && d == vol->index->root)
/* Write the current in-memory index to the work directory. No tape access. */
ret = ltfs_save_index_to_disk(vol->work_directory, SYNC_CAPTURE_EA, false, vol);
else if (! strcmp(name, "ltfs.commitMessage") && d == vol->index->root) {
char *value_null_terminated, *new_value;

Expand Down