summaryrefslogtreecommitdiff
path: root/hash.c
Commit message (Collapse)AuthorAge
* btrfs-progs: Stop stomping on 'name' input parameterAlex Chiang2008-04-01
| | | | | | | | | | | | | | | | | In btrfs_name_hash, Local variable 'buf' is declared as __u32 buf[2]; but we then try to do this: buf[0] = 0x67452301; buf[1] = 0xefcdab89; buf[2] = 0x98badcfe; buf[3] = 0x10325476; Oops. Fix buf to be the proper size. Signed-off-by: Alex Chiang <achiang@hp.com>
* Unaligned access fixesDavid Miller2008-02-15
| | | | | | | | | | | | | The first problem is that these SETGET macros lose typing information, and therefore can't see the 'packed' attribute and therefore take unaligned access SIGBUS signals on sparc64 when trying to derefernce the member. The next problem is a similar issue in btrfs_name_hash(). This gets passed things like &key.offset which is a member of a packed structure, losing this packed'ness information btrfs_name_hash() performs a potentially unaligned memory access, again resulting in a SIGBUS.
* add GPLv2Chris Mason2007-06-12
|
* Use a chunk of the key flags to record the item type.Chris Mason2007-03-15
Add (untested and simple) directory item code Fix comp_keys to use the new key ordering Add btrfs_insert_empty_item