mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 17:49:23 +00:00
* grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
created when no uuid support is compiled into mkfs.reiser.
This commit is contained in:
1 parent
76df2068c4
commit
8502fbca04
2 files changed
+20
-11
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
|
||||||
|
created when no uuid support is compiled into mkfs.reiser.
|
||||||
|
|
||||||
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
|
* grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
|
||||||
|
|||||||
+15
-11
@@ -1351,21 +1351,25 @@ grub_reiserfs_uuid (grub_device_t device, char **uuid)
|
|||||||
|
|
||||||
grub_dl_ref (my_mod);
|
grub_dl_ref (my_mod);
|
||||||
|
|
||||||
|
*uuid = NULL;
|
||||||
data = grub_reiserfs_mount (disk);
|
data = grub_reiserfs_mount (disk);
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
*uuid = grub_xasprintf ("%04x%04x-%04x-%04x-%04x-%04x%04x%04x",
|
unsigned i;
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[0]),
|
for (i = 0; i < ARRAY_SIZE (data->superblock.uuid); i++)
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[1]),
|
if (data->superblock.uuid[i])
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[2]),
|
break;
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[3]),
|
if (i < ARRAY_SIZE (data->superblock.uuid))
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[4]),
|
*uuid = grub_xasprintf ("%04x%04x-%04x-%04x-%04x-%04x%04x%04x",
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[5]),
|
grub_be_to_cpu16 (data->superblock.uuid[0]),
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[6]),
|
grub_be_to_cpu16 (data->superblock.uuid[1]),
|
||||||
grub_be_to_cpu16 (data->superblock.uuid[7]));
|
grub_be_to_cpu16 (data->superblock.uuid[2]),
|
||||||
|
grub_be_to_cpu16 (data->superblock.uuid[3]),
|
||||||
|
grub_be_to_cpu16 (data->superblock.uuid[4]),
|
||||||
|
grub_be_to_cpu16 (data->superblock.uuid[5]),
|
||||||
|
grub_be_to_cpu16 (data->superblock.uuid[6]),
|
||||||
|
grub_be_to_cpu16 (data->superblock.uuid[7]));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
*uuid = NULL;
|
|
||||||
|
|
||||||
grub_dl_unref (my_mod);
|
grub_dl_unref (my_mod);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user