[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: partition layouts - "root"
From: |
Yoshinori K. Okuji |
Subject: |
Re: partition layouts - "root" |
Date: |
Thu, 14 Apr 2005 14:15:46 +0200 |
User-agent: |
KMail/1.7.1 |
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
- Re: partition layouts - "root", (continued)
- Re: partition layouts - "root", Hollis Blanchard, 2005/04/06
- Re: partition layouts - "root", Antoine Terrienne, 2005/04/06
- Re: partition layouts - "root", Hollis Blanchard, 2005/04/06
- Re: partition layouts - "root", Yoshinori K. Okuji, 2005/04/07
- Re: partition layouts - "root", Marco Gerards, 2005/04/07
- Re: partition layouts - "root", Yoshinori K. Okuji, 2005/04/07
- Re: partition layouts - "root", Marco Gerards, 2005/04/08
- Re: partition layouts - "root", Yoshinori K. Okuji, 2005/04/12
- Re: partition layouts - "root", Marco Gerards, 2005/04/12
- Re: partition layouts - "root", Hollis Blanchard, 2005/04/13
- Re: partition layouts - "root",
Yoshinori K. Okuji <=
- Re: partition layouts - "root", Marco Gerards, 2005/04/14
Re: partition layouts, Marco Gerards, 2005/04/05
Re: partition layouts, Tomas 'Ebik' Ebenlendr, 2005/04/05