search for: __le64_to_cpu

Displaying 10 results from an estimated 10 matches for "__le64_to_cpu".

2010 Apr 03
1
[PATCH] btrfs support
...ned long long *bytes) return 0; } +static int btrfs_image(const void *buf, unsigned long long *bytes) +{ + const struct btrfs_super_block *sb = + (const struct btrfs_super_block *)buf; + + if (!memcmp(&sb->magic, BTRFS_MAGIC, sizeof(BTRFS_MAGIC)-1)) { + *bytes = (unsigned long long)__le64_to_cpu(sb->total_bytes); + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -496,6 +509,7 @@ static struct imagetype images[] = { {64, "reiserfs", reiserfs_image}, {64, "reiser4", reiser4_image}, {64, "gfs2", gfs2_image}, +...
2008 Mar 03
0
[BUG][PATCH] fstype: wrong size returned for jfs
...4 09:17:12.000000000 +0100 +++ klibc-1.5.7/usr/kinit/fstype/fstype.c 2008-03-03 16:57:34.522813138 +0000 @@ -205,7 +205,7 @@ const struct jfs_superblock *sb = (const struct jfs_superblock *)buf; if (!memcmp(sb->s_magic, JFS_MAGIC, 4)) { - *bytes = __le32_to_cpu(sb->s_size); + *bytes = __le64_to_cpu(sb->s_size) << __le16_to_cpu(sb->s_l2pbsize); return 1; } return 0; HTH, Stephane
2008 Mar 03
0
[PATCH] nilfs2 support for fstype
...c int nilfs2_image(const void *buf, unsigned long long *bytes) +{ + const struct nilfs_super_block *sb = + (const struct nilfs_super_block *)buf; + + if (sb->s_magic == __cpu_to_le16(NILFS_SUPER_MAGIC) && + sb->s_rev_level == __cpu_to_le32(2)) { + *bytes = (unsigned long long)__le64_to_cpu(sb->s_dev_size); + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -354,6 +368,7 @@ {1, "ext3", ext3_image}, {1, "ext2", ext2_image}, {1, "minix", minix_image}, + {1, "nilfs2", nilfs2_image}, {2, "o...
2011 Mar 11
1
[PATH 9/12] VTPM mini-os: New stubdom applications
This patch ports 5 new applications to the stubdom makefile structure for inclusion into stubdom domains. While these are required for vtpm-stubdom and vtpmmgrdom they could be used with other stubdom applications. -libgmp 4.3.2 -openssl 1.0.0a -polarssl 0.12.1 -berlios tpm_emulator 0.6.1 -vtpm_manager (from the tools directory) Signed off by: Matthew Fioravante
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about. The goal is not to be 100% checkpatch compliant, but to have more consistent coding style. As this is a trivial patch serie, will land in 24 hours in klibc git, unless of course ml review hits a bugger. Checked with size(3) that the generated kinit, fstype, ipconfig and nfsmount are the same. maximilian attems (4): [klibc] ipconfig: reduce
2008 Mar 25
2
bunch of small fixes
hello hpa, nothing particular stands out, just syncing with latest Debian upload and subsequent patch emails. please review merge or nack. thanks :) maks git pull git://git.debian.org/~maks/klibc.git maks for the changes: Aaron Griffin (1): [klibc] kinit: skip md assembly if mdX exists Colin Watson (1): [klibc] mount/umount FUSE support Harald Jenny (1): [klibc] fstype:
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
...e/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -460,7 +460,7 @@ static int btrfs_image(const void *buf, unsigned long long *bytes) (const struct btrfs_super_block *)buf; if (!memcmp(sb->magic, BTRFS_MAGIC, BTRFS_MAGIC_L)) { - *bytes = sb->total_bytes; + *bytes = (unsigned long long)__le64_to_cpu(sb->total_bytes); return 1; } return 0; commit 30c21662ec3c036aa551dd75375a4d8d7e008ad6 Author: Aurelien Jarno <aurel32 at debian.org> Date: Fri Apr 16 18:17:58 2010 +0200 [klibc] sh4: syscalls fixes Using the patch from bug #574834 klibc now builds, but does not wo...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...e/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -460,7 +460,7 @@ static int btrfs_image(const void *buf, unsigned long long *bytes) (const struct btrfs_super_block *)buf; if (!memcmp(sb->magic, BTRFS_MAGIC, BTRFS_MAGIC_L)) { - *bytes = sb->total_bytes; + *bytes = (unsigned long long)__le64_to_cpu(sb->total_bytes); return 1; } return 0; commit 529d9d2653e0a7ea8073b4c9c7a15504c44800be Author: Aurelien Jarno <aurel32 at debian.org> Date: Fri Apr 16 18:17:58 2010 +0200 [klibc] sh4: syscalls fixes Using the patch from bug #574834 klibc now builds, but does not wo...
2012 Nov 06
0
[ablock84-btrfs:btrfs-far 19/20] fs/far/far-path.c:42:2: error: implicit declaration of function 'IS_ERR'
...from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/vmalloc.h:4, from fs/far/far-mem.h:23, from fs/far/far-attr.c:21: include/uapi/linux/byteorder/big_endian.h:31:0: warning: "__le64_to_cpu" redefined [enabled by default] In file included from include/linux/byteorder/little_endian.h:4:0, from fs/far/far-attr.h:30, from fs/far/far-attr.c:19: include/uapi/linux/byteorder/little_endian.h:31:0: note: this is the location of the previous definition In...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...ic inline void tpm_get_random_bytes(void *buf, int nbytes) - { - get_random_bytes(buf, nbytes); -@@ -84,9 +93,9 @@ uint64_t tpm_get_ticks(void); - #define CPU_TO_LE16(x) __cpu_to_le16(x) - - #define BE64_TO_CPU(x) __be64_to_cpu(x) --#define LE64_TO_CPU(x) __be64_to_cpu(x) -+#define LE64_TO_CPU(x) __le64_to_cpu(x) - #define BE32_TO_CPU(x) __be32_to_cpu(x) --#define LE32_TO_CPU(x) __be32_to_cpu(x) -+#define LE32_TO_CPU(x) __le32_to_cpu(x) - #define BE16_TO_CPU(x) __be16_to_cpu(x) - #define LE16_TO_CPU(x) __le16_to_cpu(x) - -diff -uprN orig/tpm_emulator-0.4/Makefile tpm_emulator/Makefile ---- orig/tpm_emula...