-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redundant partitions for sparc image loop mounts #1164
Comments
|
Below patch works as expected. diff --git a/tools/udisksctl.c b/tools/udisksctl.c
index fad85e94..7d207f98 100644
--- a/tools/udisksctl.c
+++ b/tools/udisksctl.c
@@ -1402,6 +1402,7 @@ static gboolean opt_loop_no_user_interaction = FALSE;
static gboolean opt_loop_read_only = FALSE;
static gint64 opt_loop_offset = 0;
static gint64 opt_loop_size = 0;
+static gboolean opt_loop_no_partition_scan = FALSE;
static const GOptionEntry command_loop_setup_entries[] =
{
@@ -1450,6 +1451,15 @@ static const GOptionEntry command_loop_setup_entries[] =
"Do not authenticate the user if needed",
NULL
},
+ {
+ "no-partition-scan",
+ 0, /* no short option */
+ 0,
+ G_OPTION_ARG_NONE,
+ &opt_loop_no_partition_scan,
+ "Do not scan the loop device for partitions",
+ NULL
+ },
{
NULL
}
@@ -1645,6 +1655,10 @@ handle_command_loop (gint *argc,
g_variant_builder_add (&builder,
"{sv}",
"size", g_variant_new_uint64 (opt_loop_size));
+ if (opt_loop_no_partition_scan)
+ g_variant_builder_add (&builder,
+ "{sv}",
+ "no-part-scan", g_variant_new_boolean (TRUE));
}
options = g_variant_builder_end (&builder);
g_variant_ref_sink (options); |
Yeah, we can do that, good idea. Can you open a pull request please? |
Okay. Will do. But, it's not clear to me what should be the default option for loop-setup from
-or-
The backend has I was thinking of
Yes. this solution will break the existing scripts which rely on the current behavior. But, we need to think which option makes a meaningful default for most users. I'll submit a PR once this is sorted. |
That's a good question. When However given that we already released udisks-2.10.0, I would suggest not to change the behaviour and only provide a Let's ask @vojtechtrefny for his opinion too. |
I also don't think we should change the behaviour. I agree that having the same default as |
PR #1166 |
Fixed by #1166, thanks! |
On debian unstable / udisks-2.10.0-3:
Reference files:
The text was updated successfully, but these errors were encountered: