1. 11 8月, 2010 1 次提交
  2. 22 5月, 2010 2 次提交
    • C
      fs/partitions: use ADDPART_FLAG_RAID instead of magic number · cc910624
      Cesar Eduardo Barros 提交于
      ADDPART_FLAG_RAID was introduced in commit d18d7682, and most places were
      converted to use it instead of a hardcoded value. However, some places seem
      to have been missed.
      
      Change all of them to the symbolic names via the following semantic patch:
      
      @@
      struct parsed_partitions *state;
      expression E;
      @@
      (
      - state->parts[E].flags = 1
      + state->parts[E].flags = ADDPART_FLAG_RAID
      |
      - state->parts[E].flags |= 1
      + state->parts[E].flags |= ADDPART_FLAG_RAID
      |
      - state->parts[E].flags = 2
      + state->parts[E].flags = ADDPART_FLAG_WHOLEDISK
      |
      - state->parts[E].flags |= 2
      + state->parts[E].flags |= ADDPART_FLAG_WHOLEDISK
      )
      Signed-off-by: NCesar Eduardo Barros <cesarb@cesarb.net>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      cc910624
    • T
      block: use struct parsed_partitions *state universally in partition check code · 1493bf21
      Tejun Heo 提交于
      Make the following changes to partition check code.
      
      * Add ->bdev to struct parsed_partitions.
      
      * Introduce read_part_sector() which is a simple wrapper around
        read_dev_sector() which takes struct parsed_partitions *state
        instead of @bdev.
      
      * For functions which used to take @state and @bdev, drop @bdev.  For
        functions which used to take @bdev, replace it with @state.
      
      * While updating, drop superflous checks on NULL state/bdev in ldm.c.
      
      This cleans up the API a bit and enables better handling of IO errors
      during partition check as the generic partition check code now has
      much better visibility into what went wrong in the low level code
      paths.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Ben Hutchings <ben@decadent.org.uk>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      1493bf21
  3. 25 3月, 2010 2 次提交
  4. 23 5月, 2009 1 次提交
  5. 28 4月, 2008 1 次提交
    • F
      fat: detect media without partition table correctly · 0607fd02
      Frank Seidel 提交于
      I received a complaint that some FAT formated medias (e.g.  sd memory cards)
      trigger a "unknown partition table" message even though there is no partition
      table and they work correctly, while in general (when e.g.  formated with
      mkdosfs or even Windows Vista) this message is not shown.
      
      Currently this seems only to happen when the medias get formatted with Windows
      XP (and possibly Win 2000).  Then the boot indicator byte contains garbage
      (part of text message) and so do the other parts checked by msdos_paritition
      which then later triggers this message.
      
      References: novell bug #364365
      
      Most fat formatted media without partition table contains zeros in the boot
      indication and the other tested bytes and so falls through the checks in
      msdos_partition, leading it to return with 1 (all is fine).
      
      But some (e.g.  WinXP formatted) fat fomated medias don't use boot_ind and so
      the check fails and causes a "unkown partition table" warning eventhough there
      is none and everything would be fine.
      
      This additional check directly verifies if there is a fat formatted medium
      without a partition table.
      Signed-off-by: NFrank Seidel <fseidel@suse.de>
      Cc: Andreas Dilger <adilger@sun.com>
      Acked-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0607fd02
  6. 30 7月, 2007 1 次提交
  7. 12 2月, 2007 2 次提交
  8. 11 2月, 2007 1 次提交
    • F
      [PARTITION]: Add whole_disk attribute. · d18d7682
      Fabio Massimo Di Nitto 提交于
      Some partitioning systems create special partitions that
      span the entire disk.  One example are Sun partitions, and
      this whole-disk partition exists to tell the firmware the
      extent of the entire device so it can load the boot block
      and do other things.
      
      Such partitions should not be treated as normal partitions,
      because all the other partitions overlap this whole-disk one.
      So we'd see multiple instances of the same UUID etc. which
      we do not want.  udev and friends can thus search for this
      'whole_disk' attribute and use it to decide to ignore the
      partition.
      Signed-off-by: NFabio Massimo Di Nitto <fabbione@ubuntu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d18d7682
  9. 11 10月, 2006 1 次提交
  10. 30 9月, 2006 1 次提交
    • O
      [PATCH] ignore partition table on disks with AIX label · e1dfa92d
      Olaf Hering 提交于
      The on-disk data structures from AIX are not known, also the filesystem
      layout is not known.  There is a msdos partition signature at the end of
      the first block, and the kernel recognizes 3 small (and overlapping)
      partitions.  But they are not usable.  Maybe the firmware uses it to find
      the bootloader for AIX, but AIX boots also if the first block is cleared.
      
      This is the content of the partition table:
       # dd if=/dev/sdb count=$(( 4 * 16 )) bs=1 skip=$(( 0x1be )) | xxd
      0000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
      0000010: 80ff ffff 41ff ffff 1b11 0000 381b 0000  ....A.......8...
      0000020: 00ff ffff 41ff ffff 0211 0000 1900 0000  ....A...........
      0000030: 80ff ffff 41ff ffff 1b11 0000 381b 0000  ....A.......8...
      
      Handle the whole disk as empty disk.
      
      This fixes also YaST which compares the output from parted (and formerly
      fdisk) with /proc/partitions.  fdisk recognizes the AIX label since a long
      time, SuSE has a patch for parted to handle the disk label as unknown.
      
      dmesg will look like this:
       sda: [AIX]  unknown partition table
      
      Tested on an IBM B50 with AIX V4.3.3.
      Signed-off-by: NOlaf Hering <olh@suse.de>
      Cc: Albert Cahalan <acahalan@gmail.com>
      Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e1dfa92d
  11. 01 7月, 2006 1 次提交
  12. 26 6月, 2005 1 次提交
  13. 07 5月, 2005 1 次提交
    • A
      [PATCH] revert msdos partitioning fix · b2411dd2
      Andrew Morton 提交于
      This change from March 3rd causes the partition parsing code to ignore
      partitions which have a signature byte of zero.  Turns out that more people
      have such partitions than we expected, and their device numbering is coming up
      wrong in post-2.6.11 kernels.
      
      So revert the change while we think about the problem a bit more.
      
      Cc: Andries Brouwer <Andries.Brouwer@cwi.nl>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b2411dd2
  14. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4