commit 50d19ddb4cf61ab66e052db0c5d67f250158adfa
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Mon Feb 12 14:31:32 2007 -0500

    endianness

diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index c64022f..3828ded 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -30,6 +30,8 @@ static int unionfs_readdir(struct file *file, void *dirent, 
filldir_t filldir)
        char *name = NULL;
        int namelen;
        unsigned int d_type;
+       __le32 le32;
+       __le64 le64;
 
        unionfs_read_lock(file->f_dentry->d_sb);
        if ((err = unionfs_file_revalidate(file, 0)))
diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c
index a921b61..191c9e7 100644
--- a/fs/unionfs/dirhelper.c
+++ b/fs/unionfs/dirhelper.c
@@ -779,11 +779,9 @@ int odf_cache_dir(struct dentry *d_upper, struct dentry 
*d_odf)
        }
 
 out:
-       if (buf) {
-               if (buf->rdstate)
-                       free_rdstate(buf->rdstate);
-               kfree(buf);
-       }
+       if (buf && buf->rdstate)
+               free_rdstate(buf->rdstate);
+       kfree(buf);
 
        if (odf_file)
                filp_close(odf_file, NULL);
diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index ea45cfe..1c499de 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -1354,7 +1354,7 @@ struct odf_dentry_info *odf_ic_dir(struct dentry *dir)
        }
 
        memset(name,0,6);
-       sprintf(name, "%d", breakdown[0]);
+       sprintf(name, "%x", breakdown[0]);
        odis[0] = __odf_lookup(odi_ic, name, strlen(name), ODF_LOOKUP_DIR, 
NULL);
        if (IS_ERR(odis[0])) {
                err = PTR_ERR(odis[0]);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to