Skip to content
Snippets Groups Projects
  1. Sep 23, 2016
  2. Jan 20, 2014
    • Ma Haijun's avatar
      fs/ext4: fix calling put_ext4 with truncated offset · 0550870b
      Ma Haijun authored
      
      Curently, we are using 32 bit multiplication to calculate the offset,
      so the result will always be 32 bit.
      This can silently cause file system corruption when performing a write
      operation on partition larger than 4 GiB.
      
      This patch address the issue by simply promoting the terms to 64 bit,
      and let compilers decide how to do the multiplication efficiently.
      
      Signed-off-by: default avatarMa Haijun <mahaijuns@gmail.com>
      0550870b
  3. Jul 24, 2013
  4. Jul 15, 2013
    • Frederic Leroy's avatar
      Fix ext2/ext4 filesystem accesses beyond 2TiB · 04735e9c
      Frederic Leroy authored
      
      With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
      which is required to represent block numbers for storage devices that
      exceed 2TiB (the block size usually is 512B), e.g. recent hard drives
      
      We now use lbaint_t for partition offset to reflect the lbaint_t change,
      and access partitions beyond or crossing the 2.1TiB limit.
      This required changes to signature of ext4fs_devread(), and type of all
      variables relatives to block sector.
      
      ext2/ext4 fs uses logical block represented by a 32 bit value. Logical
      block is a multiple of device block sector. To avoid overflow problem
      when calling ext4fs_devread(), we need to cast the sector parameter.
      
      Signed-off-by: default avatarFrédéric Leroy <fredo@starox.org>
      04735e9c
  5. May 10, 2013
  6. Apr 01, 2013
    • York Sun's avatar
      Consolidate bool type · 472d5460
      York Sun authored
      
      'bool' is defined in random places. This patch consolidates them into a
      single header file include/linux/types.h, using stdbool.h introduced in C99.
      
      All other #define, typedef and enum are removed. They are all consistent with
      true = 1, false = 0.
      
      Replace FALSE, False with false. Replace TRUE, True with true.
      Skip *.py, *.php, lib/* files.
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      472d5460
  7. Dec 07, 2012
  8. Aug 09, 2012
Loading