@NotThreadSafe public final class UfsSyncUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UfsSyncUtils.SyncPlan
A class describing how to sync an inode with the ufs.
|
Modifier and Type | Method and Description |
---|---|
static UfsSyncUtils.SyncPlan |
computeSyncPlan(Inode inode,
Fingerprint ufsFingerprint,
boolean containsMountPoint)
Given an inode and ufs status, returns a sync plan describing how to
sync the inode with the ufs.
|
static boolean |
inodeUfsIsContentSynced(Inode inode,
Fingerprint inodeFingerprint,
Fingerprint ufsFingerprint)
Returns true if the given inode's content is synced with the ufs status.
|
static boolean |
inodeUfsIsMetadataSynced(Inode inode,
Fingerprint inodeFingerprint,
Fingerprint ufsFingerprint)
Returns true if the given inode's metadata matches the ufs fingerprint.
|
public static UfsSyncUtils.SyncPlan computeSyncPlan(Inode inode, Fingerprint ufsFingerprint, boolean containsMountPoint)
inode
- the inode to syncufsFingerprint
- the ufs fingerprint to check for the synccontainsMountPoint
- true if this inode contains a mount point, false otherwiseUfsSyncUtils.SyncPlan
describing how to sync the inode with the ufspublic static boolean inodeUfsIsContentSynced(Inode inode, Fingerprint inodeFingerprint, Fingerprint ufsFingerprint)
inode
- the inode to check for syncinodeFingerprint
- the inode's parsed fingerprintufsFingerprint
- the ufs fingerprint to check for the syncpublic static boolean inodeUfsIsMetadataSynced(Inode inode, Fingerprint inodeFingerprint, Fingerprint ufsFingerprint)
inode
- the inode to check for syncinodeFingerprint
- the inode's parsed fingerprintufsFingerprint
- the ufs fingerprint to check for the syncCopyright © 2023. All Rights Reserved.