Skip to main content
ALT Linux Bugzilla
– Attachment 22812 Details for
Bug 61214
Установщик ошибочно показывает неформатированный раздел как Ext4
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Исправление ext2 плагина
0001-ext2-propagate-open-volume-error.patch (text/plain), 767 bytes, created by
Жора Змейкин
on 2026-10-25 13:22:27 MSK
(
hide
)
Description:
Исправление ext2 плагина
Filename:
MIME Type:
Creator:
Жора Змейкин
Created:
2026-10-25 13:22:27 MSK
Size:
767 bytes
patch
obsolete
>Subject: [PATCH] ext2: propagate volume-open errors when probing the superblock > >open_volume() returns a negative errno on failure. Negating rc, which is >still zero, makes fsim_get_ext2_superblock() report success without reading >or validating the superblock. fs_probe() then accepts the volume as Ext4. > >Return the positive error code from fd, as expected by the FSIM interface. > >diff --git a/plugins/ext2/fsimext2.c b/plugins/ext2/fsimext2.c >index a30448c..d18fd66 100644 >--- a/plugins/ext2/fsimext2.c >+++ b/plugins/ext2/fsimext2.c >@@ -523,7 +523,7 @@ int fsim_get_ext2_superblock( logical_volume_t *volume, struct ext2_super_block > > fd = EngFncs->open_volume(volume, O_RDONLY, 0); > if (fd < 0) { >- rc = -rc; >+ rc = -fd; > LOG_EXIT_INT(rc); > return rc; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 61214
: 22812 |
22813