diff options
author | Martin Ebourne <martin@ebourne.me.uk> | 2005-11-30 23:18:04 +0000 |
---|---|---|
committer | Martin Ebourne <martin@ebourne.me.uk> | 2005-11-30 23:18:04 +0000 |
commit | 15fe4e977048085cb929a50e0561b223cf95c9a9 (patch) | |
tree | a377f06f289bb78fb608da11f43ba52cb961e4d0 /bin/bbackupd | |
parent | a1fc249484f3c88630901828918c72897dd2c18d (diff) |
Merged martin/xattr at r5 to trunk
Diffstat (limited to 'bin/bbackupd')
-rwxr-xr-x | bin/bbackupd/BackupClientDirectoryRecord.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index eb4a8343..89226eef 100755 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -154,6 +154,10 @@ void BackupClientDirectoryRecord::SyncDirectory(BackupClientDirectoryRecord::Syn #ifndef PLATFORM_stat_NO_st_flags currentStateChecksum.Add(&st.st_flags, sizeof(st.st_flags)); #endif // n PLATFORM_stat_NO_st_flags + + StreamableMemBlock xattr; + BackupClientFileAttributes::FillExtendedAttr(xattr, rLocalPath.c_str()); + currentStateChecksum.Add(xattr.GetBuffer(), xattr.GetSize()); } // Read directory entries, building arrays of names @@ -522,7 +526,7 @@ bool BackupClientDirectoryRecord::UpdateItems(BackupClientDirectoryRecord::SyncP fileSize = st.st_size; inodeNum = st.st_ino; hasMultipleHardLinks = (st.st_nlink > 1); - attributesHash = BackupClientFileAttributes::GenerateAttributeHash(st, *f); + attributesHash = BackupClientFileAttributes::GenerateAttributeHash(st, filename, *f); } // See if it's in the listing (if we have one) |