Re: [v10 1/2] fs: New zonefs file system

From: Damien Le Moal
Date: Wed Feb 05 2020 - 02:46:12 EST


On 2020/02/05 16:17, Markus Elfring wrote:
>> Declaring it as
>>
>> static const char * const zgroups_name[] = { "cnv", "seq" };
>>
>> is probably what you are suggesting,
>
> Yes.
>
>
>> but since the string literals are already constants by default,
>> I do not think there is any difference.
>
> I propose to define this array also as a completely immutable data structure.

I understood that and pointed out that the added "const" does not change a
thing. I think that as is, it already is immutable. But sure, I can add
that const, no problem.

>
> Regards,
> Markus
>


--
Damien Le Moal
Western Digital Research