diff options
author | Christoph Hellwig <hch@lst.de> | 2012-11-16 09:20:37 +1100 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-19 20:11:24 -0600 |
commit | bc02e8693d875c2a9b0037cfd37fe0b726d26403 (patch) | |
tree | 6896726d63947779f941a4daf055da142ad07985 /fs/xfs/uuid.h | |
parent | 1813dd64057490e7a0678a885c4fe6d02f78bdc1 (diff) | |
download | linux-bc02e8693d875c2a9b0037cfd37fe0b726d26403.tar.bz2 |
xfs: add CRC infrastructure
- add a mount feature bit for CRC enabled filesystems
- add some helpers for generating and verifying the CRCs
- add a copy_uuid helper
The checksumming helpers are loosely based on similar ones in sctp,
all other bits come from Dave Chinner.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/uuid.h')
-rw-r--r-- | fs/xfs/uuid.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/uuid.h b/fs/xfs/uuid.h index 4732d71262cc..104db0f3bed6 100644 --- a/fs/xfs/uuid.h +++ b/fs/xfs/uuid.h @@ -26,4 +26,10 @@ extern int uuid_is_nil(uuid_t *uuid); extern int uuid_equal(uuid_t *uuid1, uuid_t *uuid2); extern void uuid_getnodeuniq(uuid_t *uuid, int fsid [2]); +static inline void +uuid_copy(uuid_t *dst, uuid_t *src) +{ + memcpy(dst, src, sizeof(uuid_t)); +} + #endif /* __XFS_SUPPORT_UUID_H__ */ |