~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to fs/udf.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-01-11 11:12:55 UTC
  • mfrom: (17.3.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100111111255-lr8ebkqw5x41gq6j
Tags: 1.98~20100101-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Conflict with grub (<< 0.97-54) as well as grub-legacy.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu. Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed. If it is, show the
    menu, otherwise boot immediately. If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt. Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - If the environment variable "quiet" is set to something other than 0,
    suppress progress messages as the kernel and initrd load. Set this for
    non-recovery kernel menu entries.
  - Add GRUB_DEFAULT=saved, as well as grub-set-default and grub-reboot
    utilities. Provides functionality essentially equivalent to GRUB
    Legacy's savedefault.
  - Keep the loopback file open so that subsequent changes to the "root"
    environment variable don't affect it.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Handle RAID devices containing virtio components.
* Update savedefault patch from current Bazaar branch, fixing grub-reboot
  to have distinct behaviour from grub-set-default (LP: #497326).
* Fix grub-mkisofs compilation error with FORTIFY_SOURCE.
* Convert recordfail boilerplate in each menu entry to use a function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
      if (grub_disk_read (disk, block << GRUB_UDF_LOG2_BLKSZ, 0,
526
526
                          sizeof (struct grub_udf_vrs), &vrs))
527
527
        {
528
 
          grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
528
          grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
529
529
          goto fail;
530
530
        }
531
531
 
539
539
          (grub_memcmp (vrs.magic, GRUB_UDF_STD_IDENT_CDW02, 5)) &&
540
540
          (grub_memcmp (vrs.magic, GRUB_UDF_STD_IDENT_TEA01, 5)))
541
541
        {
542
 
          grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
542
          grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
543
543
          goto fail;
544
544
        }
545
545
    }
552
552
      if (grub_disk_read (disk, *sblklist << GRUB_UDF_LOG2_BLKSZ, 0,
553
553
                          sizeof (struct grub_udf_avdp), &avdp))
554
554
        {
555
 
          grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
555
          grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
556
556
          goto fail;
557
557
        }
558
558
 
565
565
      sblklist++;
566
566
      if (*sblklist == 0)
567
567
        {
568
 
          grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
568
          grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
569
569
          goto fail;
570
570
        }
571
571
    }
579
579
      if (grub_disk_read (disk, block << GRUB_UDF_LOG2_BLKSZ, 0,
580
580
                          sizeof (struct grub_udf_tag), &tag))
581
581
        {
582
 
          grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
582
          grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
583
583
          goto fail;
584
584
        }
585
585
 
596
596
                              sizeof (struct grub_udf_pd),
597
597
                              &data->pds[data->npd]))
598
598
            {
599
 
              grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
599
              grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
600
600
              goto fail;
601
601
            }
602
602
 
612
612
                              sizeof (struct grub_udf_lvd),
613
613
                              &data->lvd))
614
614
            {
615
 
              grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
615
              grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
616
616
              goto fail;
617
617
            }
618
618
 
675
675
  if (grub_disk_read (disk, block << GRUB_UDF_LOG2_BLKSZ, 0,
676
676
                      sizeof (struct grub_udf_fileset), &root_fs))
677
677
    {
678
 
      grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
 
678
      grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
679
679
      goto fail;
680
680
    }
681
681