[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to reuse the the part of codes about file system in grub ?

From: Andrei Borzenkov
Subject: Re: How to reuse the the part of codes about file system in grub ?
Date: Fri, 18 Sep 2015 06:59:15 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

18.09.2015 03:52, Arch Stack пишет:
On Mon, Sep 14, 2015 at 1:46 AM, Andrei Borzenkov <address@hidden>

Not sure I understand the question. Device names are obviously platform
specific. On Windows raw devices are indeed named like above. Could you
please give example of what you are trying to do?

For example, if grub-fstest is compiled with MinGW32 and used on cmd,
C:\dumpfile ls /'* or *'grub-fstest.exe
\\.\GLOBALROOT\Device\Harddisk0\Partition1* *ls /'* can't work.

Why it "can't work"?

I have created a patch for it to use grub-fstest on Windows. Commands above
work well with this patch.

The patch is wrong. GRUB kernel does not know anything about host device names. You need to check why host driver fails to open device name.

But I notice that the *if* statement I have patched aimed to check whether
the *file_name* was a blocklist or not. I think that the name of a
blocklist has a special format, why not just check for it?

reply via email to

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