Re: dm: Allow the use of escaped characters in str_field_delimit()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 18, 2024 at 11:38:05AM +0100, Mikulas Patocka wrote:
> 
> 
> On Tue, 12 Nov 2024, Mohammed Anees wrote:
> 
> > Escape characters were not handled before, which could lead to
> > unwanted issues. Some device-mapper names may contain backslashes (`\`)
> > as valid characters and should not be treated as escape characters. Only
> > escape characters followed directly by the separator are considered
> > valid and need to be processed. After handling, the escape characters
> > are removed to ensure the final string is correctly parsed without
> > unwanted escape sequences which were used only for escaping.
> > 
> > Signed-off-by: Mohammed Anees <pvmohammedanees2003@xxxxxxxxx>
> 
> Hi
> 
> Does anyone really need this? Is there some use case for using escape 
> characters in device mapper names?

It would seem Mohammed cared enough to write the patch, but not reply
to you with further clarification on why it needed...

BUT, in this instance it follows that: if lvm2 is allowing weird names
which require escacped characters _and_ dm-init is used then dm-init
needs to support handling them (dm-init is all about _not_ using
normal initramfs with lvm2 in all its glory).

Mike




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux