Displaying 4 results from an estimated 4 matches for "parted_not_use_m".
2015 Mar 24
2
Re: [PATCH] New API: part_get_part_type for showing partition type
...D_EXT_CMD(str_sgdisk, sgdisk);
> >
> > +#ifndef PARTED_NO_M
> > +# define PARTED_NO_M 0
> > +#endif
>
> What does this bit do?
I want to use print_partition_table(xxx, 0)
but do not want to pass a raw '0'.
Maybe the name is not so clear.
I'll rename it to PARTED_NOT_USE_M in the next version.
>
> > /* Notes:
> > *
> > * Parted 1.9 sends error messages to stdout, hence use of the
> > @@ -1022,3 +1026,111 @@ do_part_get_name (const char *device, int partnum)
> > reply_with_error ("cannot get the partition name from '...
2015 Mar 24
1
Re: [PATCH] New API: part_get_part_type for showing partition type
...gt; +# define PARTED_NO_M 0
> > > > +#endif
> > >
> > > What does this bit do?
> >
> > I want to use print_partition_table(xxx, 0)
> > but do not want to pass a raw '0'.
> > Maybe the name is not so clear.
> > I'll rename it to PARTED_NOT_USE_M in the next version.
>
> Improving the readability of a raw integer is a good thing; however,
> I'd suggest switching to an enum instead.
>
Hi,
How about:
enum {
PARTED_INVALID = -1,
/* parted do not support -m option */
PARTED_OPT_NO_M,
PARTED_OPT_M};
print_partition_t...
2015 Mar 24
0
Re: [PATCH] New API: part_get_part_type for showing partition type
...> +#ifndef PARTED_NO_M
> > > +# define PARTED_NO_M 0
> > > +#endif
> >
> > What does this bit do?
>
> I want to use print_partition_table(xxx, 0)
> but do not want to pass a raw '0'.
> Maybe the name is not so clear.
> I'll rename it to PARTED_NOT_USE_M in the next version.
Improving the readability of a raw integer is a good thing; however,
I'd suggest switching to an enum instead.
--
Pino Toscano
2015 Mar 17
4
[PATCH] New API: part_get_part_type for showing partition type
This patch will add support for getting partition type
of a partiton numbered device.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
---
daemon/parted.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 18 +++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 131 insertions(+), 1 deletion(-)
diff --git a/daemon/parted.c