Skip to main content
ALT Linux Bugzilla
– Attachment 22813 Details for
Bug 61214
Установщик ошибочно показывает неформатированный раздел как Ext4
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Проверка монтирования
0002-gpt-dos-refuse-create-on-mounted-disk.patch (text/plain), 1.28 KB, created by
Жора Змейкин
on 2026-10-25 13:22:54 MSK
(
hide
)
Description:
Проверка монтирования
Filename:
MIME Type:
Creator:
Жора Змейкин
Created:
2026-10-25 13:22:54 MSK
Size:
1.28 KB
patch
obsolete
>Subject: [PATCH] gpt, dos: reject new partitions on mounted disks > >Before allocating a new partition, ask the existing engine offline check >whether volumes on the disk are mounted. Return EBUSY without creating >a segment when the disk is not offline. > >diff --git a/plugins/dos/defsegmgr.c b/plugins/dos/defsegmgr.c >index 33fea00..5f68747 100644 >--- a/plugins/dos/defsegmgr.c >+++ b/plugins/dos/defsegmgr.c >@@ -855,6 +855,13 @@ static int CreateDiskSegment( DISKSEG * free_space, /* a free > } > } > >+ if (ld->object_type == DISK && >+ strncmp(ld->name, "mpath", 5) != 0 && >+ !EngFncs->is_offline(ld, NULL)) { >+ LOG_EXIT_INT(EBUSY); >+ return EBUSY; >+ } >+ > /* > * Dump debug info to engine log > */ >diff --git a/plugins/gpt/gptsegmgr.c b/plugins/gpt/gptsegmgr.c >index 7659735..4898024 100644 >--- a/plugins/gpt/gptsegmgr.c >+++ b/plugins/gpt/gptsegmgr.c >@@ -1134,6 +1134,13 @@ static int CreateDiskSegment( storage_object_t * freespace, /* a > return rc; > } > >+ if (ld->object_type == DISK && >+ strncmp(ld->name, "mpath", 5) != 0 && >+ !EngFncs->is_offline(ld, NULL)) { >+ LOG_EXIT_INT(EBUSY); >+ return EBUSY; >+ } >+ > /* > * Dump debug info to engine log > */
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