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

« back to all changes in this revision

Viewing changes to fs/reiserfs.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:
691
691
  if (grub_memcmp (data->superblock.magic_string,
692
692
                   REISERFS_MAGIC_STRING, sizeof (REISERFS_MAGIC_STRING) - 1))
693
693
    {
694
 
      grub_error (GRUB_ERR_BAD_FS, "not a reiserfs filesystem");
 
694
      grub_error (GRUB_ERR_BAD_FS, "not a ReiserFS filesystem");
695
695
      goto fail;
696
696
    }
697
697
  data->disk = disk;
700
700
 fail:
701
701
  /* Disk is too small to contain a ReiserFS.  */
702
702
  if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
703
 
    grub_error (GRUB_ERR_BAD_FS, "not a reiserfs filesystem");
 
703
    grub_error (GRUB_ERR_BAD_FS, "not a ReiserFS filesystem");
704
704
 
705
705
  grub_free (data);
706
706
  return 0;
998
998
    goto fail;
999
999
  if (root.block_number == 0)
1000
1000
    {
1001
 
      grub_error (GRUB_ERR_BAD_FS, "Unable to find root item");
 
1001
      grub_error (GRUB_ERR_BAD_FS, "unable to find root item");
1002
1002
      goto fail; /* Should never happen since checked at mount.  */
1003
1003
    }
1004
1004
  grub_fshelp_find_file (name, &root, &found,
1014
1014
    goto fail;
1015
1015
  if (info.block_number == 0)
1016
1016
    {
1017
 
      grub_error (GRUB_ERR_BAD_FS, "Unable to find searched item");
 
1017
      grub_error (GRUB_ERR_BAD_FS, "unable to find searched item");
1018
1018
      goto fail;
1019
1019
    }
1020
1020
  entry_version = grub_le_to_cpu16 (info.header.version);
1289
1289
    goto fail;
1290
1290
  if (root.block_number == 0)
1291
1291
    {
1292
 
      grub_error(GRUB_ERR_BAD_FS, "Root not found");
 
1292
      grub_error(GRUB_ERR_BAD_FS, "root not found");
1293
1293
      goto fail;
1294
1294
    }
1295
1295
  grub_fshelp_find_file (path, &root, &found, grub_reiserfs_iterate_dir,