All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: partition layouts - "root"
Date: Thu, 14 Apr 2005 14:15:46 +0200	[thread overview]
Message-ID: <200504141415.46601.okuji@enbug.org> (raw)
In-Reply-To: <e76c902244df471d5bbd07bd1a8dd6f2@penguinppc.org>

On Thursday 14 April 2005 05:46 am, Hollis Blanchard wrote:
> I think I like this idea a lot. It would also be nice if the various
> file-based commands (like cat and cmp) also looked at the current
> working directory as well.
>
> lsdev (or lsdisk?) also makes a lot of sense to me.

Ok. Then, let's go to this direction. I think this function would be required:

- char *grub_file_get_absolute_path (const char *path)

If PATH is empty, return current working directory.
If PATH is a relative path, return a path based on current working directory.
If PATH is an absolute path, return a patch based on current working device.
If PATH contains a device name, return PATH.
The return value should be allocated on the heap.
This function also should resolve "." and "..".

Once this is implemented, the rest is trivial. So, who wants to work on 
this? ;)

Okuji



  reply	other threads:[~2005-04-14 12:37 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-05  0:38 partition layouts Hollis Blanchard
2005-04-05  4:55 ` Vernon Mauery
2005-04-05  7:02   ` Marco Gerards
2005-04-05 13:40     ` Vernon Mauery
2005-04-05 13:50       ` Marco Gerards
2005-04-05 15:50     ` Hollis Blanchard
2005-04-05 15:47   ` partition layouts - separate /boot Hollis Blanchard
2005-04-05  5:41 ` partition layouts Yoshinori K. Okuji
2005-04-05 16:01   ` Hollis Blanchard
2005-04-05 16:45     ` Marco Gerards
2005-04-05 22:53       ` partition layouts - "root" Hollis Blanchard
2005-04-06  6:32         ` Marco Gerards
2005-04-06 14:52           ` Hollis Blanchard
2005-04-06 15:43             ` Antoine Terrienne
2005-04-07  0:02               ` Hollis Blanchard
2005-04-07 14:17                 ` Yoshinori K. Okuji
2005-04-07 14:37                   ` Marco Gerards
2005-04-07 16:46                     ` Yoshinori K. Okuji
2005-04-08  6:39                       ` Marco Gerards
2005-04-12 10:15                         ` Yoshinori K. Okuji
2005-04-12 11:13                           ` Marco Gerards
2005-04-14  3:46                         ` Hollis Blanchard
2005-04-14 12:15                           ` Yoshinori K. Okuji [this message]
2005-04-14 16:30                             ` Marco Gerards
2005-04-05  7:00 ` partition layouts Marco Gerards
2005-04-05 15:38   ` partition layouts - symlinks Hollis Blanchard
2005-04-05  7:58 ` partition layouts Tomas 'Ebik' Ebenlendr

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=200504141415.46601.okuji@enbug.org \
    --to=okuji@enbug.org \
    --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.