All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: bugfix, hostfs
Date: Fri, 13 Aug 2004 12:41:06 +0200	[thread overview]
Message-ID: <87r7qbmibh.fsf@marco.marco-g.com> (raw)
In-Reply-To: <20040812222119.GA25312@artax.karlin.mff.cuni.cz> (Tomas Ebenlendr's message of "Fri, 13 Aug 2004 00:21:19 +0200")

ebik@artax.karlin.mff.cuni.cz (Tomas Ebenlendr) writes:

>> This requires some changes in the cache manager, but not difficult. What 
>> do you think?
>
> Hmm, leaving this change for anybody who understand disks in grub.
> Instead of it I use disk->name :-) .

Better use an int.  It is easier/cheaper to check and IMHO cleaner.

> PS.: I'm changing conf/powerpc-ieee1275.rmk and I didn't test
>   compilability of my code on ppc. But it should be OS-dependent, but
>   not architecture dependent.

Don't worry about that.  This only changes stuff in util/, so no bad
things will happen.  BTW, I see you have added hostfs.c to fs/, I
think util/ is a better place for this.

> ##########################################################################
> Changelog:
> 2004-08-08  Tomas Ebenlendr  <ebik@ucw.cz>
>
> 	* kern/dl.c (grub_dl_load_file): Fixed bug: When
> 	grub_dl_load_core fails, mod shouldn't be derefered.

Just leave "Fixed bug: " away.  If Okuji says it is ok to commit,
please change the date to the commit date.

> +      case ENOMEM: r = GRUB_ERR_OUT_OF_MEMORY; break;
> +      case ENOTDIR:
> +      case ENOENT: r = GRUB_ERR_FILE_NOT_FOUND; break;
> +      case ELOOP: r = GRUB_ERR_SYMLINK_LOOP; break;
> +      case EIO: r = GRUB_ERR_FILE_READ_ERROR; break;
> +      default: r = GRUB_ERR_BAD_ARGUMENT; break;

I think I missed this last time.  Better use multiple lines for a case
statement.

> +  file->data = (void *) open(name, O_RDONLY);

open (

> +    return errno2err();

You missed a space here as well.

> +    return errno2err();

...

Thanks,
Marco




  reply	other threads:[~2004-08-13 10:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-08 17:30 bugfix, hostfs Tomas Ebenlendr
2004-08-08 18:00 ` Marco Gerards
2004-08-08 18:17   ` Tomas Ebenlendr
2004-08-08 18:47     ` Marco Gerards
2004-08-08 19:17     ` Yoshinori K. Okuji
2004-08-12 22:21       ` Tomas Ebenlendr
2004-08-13 10:41         ` Marco Gerards [this message]
2004-08-14  8:37           ` Tomas Ebenlendr
2004-08-14 10:18             ` Marco Gerards
2004-08-14 10:38               ` Tomas Ebenlendr
2004-08-21 13:57                 ` Yoshinori K. Okuji

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r7qbmibh.fsf@marco.marco-g.com \
    --to=metgerards@student.han.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.