[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? ;)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]