* RE: Can anyone boot a system using btrfs root with linux 3.14 or newer? - RESOLVED
@ 2014-04-27 12:00 Пламен Петров
2014-04-27 16:00 ` Martin
0 siblings, 1 reply; 3+ messages in thread
From: Пламен Петров @ 2014-04-27 12:00 UTC (permalink / raw)
To: 'Chris Mason', 'Chris Murphy',
'Marc MERLIN', 'Johannes Löthberg',
'Duncan'
Cc: linux-btrfs
The problem reported in this thread has been RESOLVED.
It's not BTRFS's fault.
Debugging on my part led to the actual problem in do_mounts.c - some filesystems mount routines return error codes other than 0, EACCES and EINVAL and such return codes result in the kernel panicking without trying to mount root with all of the available filesystems.
Patch is available as attachment to bug 74901 - https://bugzilla.kernel.org/show_bug.cgi?id=74901 . The bugentry documents how I managed to find the problem.
Also, the patch has been sent to the linux kernel mailing list - see http://news.gmane.org/find-root.php?group=gmane.linux.kernel&article=1691881 Hopefully, it will find its way into the kernel, and later on - in stable releases.
Thanks to you all!
------------------------------
Plamen Petrov
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? - RESOLVED
2014-04-27 12:00 Пламен Петров
@ 2014-04-27 16:00 ` Martin
0 siblings, 0 replies; 3+ messages in thread
From: Martin @ 2014-04-27 16:00 UTC (permalink / raw)
To: linux-btrfs
On 27/04/14 13:00, Пламен Петров wrote:
> The problem reported in this thread has been RESOLVED.
>
> It's not BTRFS's fault.
>
> Debugging on my part led to the actual problem in do_mounts.c - some
> filesystems mount routines return error codes other than 0, EACCES
> and EINVAL and such return codes result in the kernel panicking
> without trying to mount root with all of the available filesystems.
>
> Patch is available as attachment to bug 74901 -
> https://bugzilla.kernel.org/show_bug.cgi?id=74901 . The bugentry
> documents how I managed to find the problem.
Well deduced and that looks to be a good natural clean fix.
My only question is: What was the original intent to deliberately fail
if something other than EACCES or EINVAL were reported?
> Also, the patch has been sent to the linux kernel mailing list - see
> http://news.gmane.org/find-root.php?group=gmane.linux.kernel&article=1691881
> Hopefully, it will find its way into the kernel, and later on - in
> stable releases.
That all looks very good and very thorough.
> Thanks to you all! ------------------------------ Plamen Petrov
Thanks to you for chasing it through!
AND for posting the "Resolved" to let everyone know. :-)
Regards,
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Can anyone boot a system using btrfs root with linux 3.14 or newer? - RESOLVED
@ 2014-05-01 20:27 Пламен Петров
0 siblings, 0 replies; 3+ messages in thread
From: Пламен Петров @ 2014-05-01 20:27 UTC (permalink / raw)
To: 'Chris Mason', 'Chris Murphy',
'Marc MERLIN', 'Johannes Löthberg',
'Duncan', 'Martin'
Cc: linux-btrfs
>On 27/04/14 13:00, Пламен Петров wrote:
>> The problem reported in this thread has been RESOLVED.
>>
>> It's not BTRFS's fault.
>>
>> Debugging on my part led to the actual problem in do_mounts.c - some
>> filesystems mount routines return error codes other than 0, EACCES
>> and EINVAL and such return codes result in the kernel panicking
>> without trying to mount root with all of the available filesystems.
>>
>> Patch is available as attachment to bug 74901 -
>> https://bugzilla.kernel.org/show_bug.cgi?id=74901 . The bugentry
>> documents how I managed to find the problem.
>
>Well deduced and that looks to be a good natural clean fix.
>
>My only question is: What was the original intent to deliberately fail
>if something other than EACCES or EINVAL were reported?
>
This one beats me as well: I looked up current git history for init/do_mounts.c - it turns out that it came in git this way, with 2.6.12-rc2. The actual reasoning behind its behavior - I do not know... and did not bother looking it up further.
>> Also, the patch has been sent to the linux kernel mailing list - see
>> http://news.gmane.org/find-root.php?group=gmane.linux.kernel&article=1691881
>> Hopefully, it will find its way into the kernel, and later on - in
>> stable releases.
>
>>That all looks very good and very thorough.
>>
>> Thanks to you all! ------------------------------ Plamen Petrov
>
>Thanks to you for chasing it through!
>
>AND for posting the "Resolved" to let everyone know.
>
>Regards,
>Martin
You are welcome!
Regards,
---------------------------------
Plamen Petrov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-01 20:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-01 20:27 Can anyone boot a system using btrfs root with linux 3.14 or newer? - RESOLVED Пламен Петров
-- strict thread matches above, loose matches on Subject: below --
2014-04-27 12:00 Пламен Петров
2014-04-27 16:00 ` Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).