Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
da746c60
"tutorials/models/vscode:/vscode.git/clone" did not exist on "6b02babbadce55093b3de0f47a144c5574162f31"
Commit
da746c60
authored
Jun 21, 2021
by
longpanda
Browse files
Set hidden attribute for VTOYEFI part in GPT partition style
parent
81aa5695
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
LinuxGUI/Ventoy2Disk/Core/ventoy_util.c
LinuxGUI/Ventoy2Disk/Core/ventoy_util.c
+1
-1
Ventoy2Disk/Ventoy2Disk/Utility.c
Ventoy2Disk/Ventoy2Disk/Utility.c
+1
-1
vtoygpt/vtoygpt.c
vtoygpt/vtoygpt.c
+1
-1
No files found.
LinuxGUI/Ventoy2Disk/Core/ventoy_util.c
View file @
da746c60
...
@@ -412,7 +412,7 @@ int ventoy_fill_gpt(uint64_t size, uint64_t reserve, int align4k, VTOY_GPT_INFO
...
@@ -412,7 +412,7 @@ int ventoy_fill_gpt(uint64_t size, uint64_t reserve, int align4k, VTOY_GPT_INFO
ventoy_gen_preudo_uuid
(
&
(
Table
[
1
].
PartGuid
));
ventoy_gen_preudo_uuid
(
&
(
Table
[
1
].
PartGuid
));
Table
[
1
].
StartLBA
=
Table
[
0
].
LastLBA
+
1
;
Table
[
1
].
StartLBA
=
Table
[
0
].
LastLBA
+
1
;
Table
[
1
].
LastLBA
=
Table
[
1
].
StartLBA
+
VTOYEFI_PART_BYTES
/
512
-
1
;
Table
[
1
].
LastLBA
=
Table
[
1
].
StartLBA
+
VTOYEFI_PART_BYTES
/
512
-
1
;
Table
[
1
].
Attr
=
0x
8
000000000000001ULL
;
Table
[
1
].
Attr
=
0x
C
000000000000001ULL
;
ventoy_fill_gpt_partname
(
Table
[
1
].
Name
,
"VTOYEFI"
);
ventoy_fill_gpt_partname
(
Table
[
1
].
Name
,
"VTOYEFI"
);
#if 0
#if 0
...
...
Ventoy2Disk/Ventoy2Disk/Utility.c
View file @
da746c60
...
@@ -659,7 +659,7 @@ int VentoyFillGpt(UINT64 DiskSizeBytes, VTOY_GPT_INFO *pInfo)
...
@@ -659,7 +659,7 @@ int VentoyFillGpt(UINT64 DiskSizeBytes, VTOY_GPT_INFO *pInfo)
CoCreateGuid
(
&
(
Table
[
1
].
PartGuid
));
CoCreateGuid
(
&
(
Table
[
1
].
PartGuid
));
Table
[
1
].
StartLBA
=
Table
[
0
].
LastLBA
+
1
;
Table
[
1
].
StartLBA
=
Table
[
0
].
LastLBA
+
1
;
Table
[
1
].
LastLBA
=
Table
[
1
].
StartLBA
+
VENTOY_EFI_PART_SIZE
/
512
-
1
;
Table
[
1
].
LastLBA
=
Table
[
1
].
StartLBA
+
VENTOY_EFI_PART_SIZE
/
512
-
1
;
Table
[
1
].
Attr
=
0x
8
000000000000001ULL
;
Table
[
1
].
Attr
=
0x
C
000000000000001ULL
;
memcpy
(
Table
[
1
].
Name
,
L"VTOYEFI"
,
7
*
2
);
memcpy
(
Table
[
1
].
Name
,
L"VTOYEFI"
,
7
*
2
);
#if 0
#if 0
...
...
vtoygpt/vtoygpt.c
View file @
da746c60
...
@@ -244,7 +244,7 @@ int DumpGptInfo(VTOY_GPT_INFO *pGptInfo)
...
@@ -244,7 +244,7 @@ int DumpGptInfo(VTOY_GPT_INFO *pGptInfo)
return
0
;
return
0
;
}
}
#define VENTOY_EFI_PART_ATTR 0x
8
000000000000001ULL
#define VENTOY_EFI_PART_ATTR 0x
C
000000000000001ULL
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment