From 283ec9608e6cbc9393941d5fae901e558360d2bd Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Tue, 16 Mar 2010 09:46:33 +0000 Subject: iatt: changes across the codebase - libglusterfs -- call-stub -- inode -- protocol - libglusterfsclient - cluster/replicate - cluster/{dht,nufa,switch} - cluster/unify - cluster/HA - cluster/map - cluster/stripe - debug/error-gen - debug/trace - debug/io-stats - encryption/rot-13 - features/filter - features/locks - features/path-converter - features/quota - features/trash - mount/fuse - performance/io-threads - performance/io-cache - performance/quick-read - performance/read-ahead - performance/stat-prefetch - performance/symlink-cache - performance/write-behind - protocol/client - protocol/server - storage-posix Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361 --- libglusterfs/src/gf-dirent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libglusterfs/src/gf-dirent.c') diff --git a/libglusterfs/src/gf-dirent.c b/libglusterfs/src/gf-dirent.c index 0a3436949..4a7220d96 100644 --- a/libglusterfs/src/gf-dirent.c +++ b/libglusterfs/src/gf-dirent.c @@ -126,11 +126,11 @@ gf_dirent_serialize (gf_dirent_t *entries, char *buf, size_t buf_size) entry_nb = (void *) (buf + size); entry_nb->d_ino = hton64 (entry->d_ino); - entry_nb->d_off = hton64 (entry->d_off); + entry_nb->d_off = hton64 (entry->d_off); entry_nb->d_len = hton32 (entry->d_len); entry_nb->d_type = hton32 (entry->d_type); - gf_stat_from_stat (&entry_nb->d_stat, &entry->d_stat); + gf_stat_from_iatt (&entry_nb->d_stat, &entry->d_stat); strcpy (entry_nb->d_name, entry->d_name); } @@ -175,7 +175,7 @@ gf_dirent_unserialize (gf_dirent_t *entries, const char *buf, size_t buf_size) entry->d_len = ntoh32 (entry_nb->d_len); entry->d_type = ntoh32 (entry_nb->d_type); - gf_stat_to_stat (&entry_nb->d_stat, &entry->d_stat); + gf_stat_to_iatt (&entry_nb->d_stat, &entry->d_stat); strcpy (entry->d_name, entry_nb->d_name); -- cgit