docs: document handling of metacharacter escape in xl disk format
PATCH 1/1 docs: document handling of metacharacter escape in xl disk format
--- docs/misc/xl-disk-configuration.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
docs/misc/xl-disk-configuration.txt +18 -0
@@ -48,6 +48,24 @@ positionally or explicitly). Whitespace may appear before each parameter and will be ignored. +Metacharacters in a <diskspec> may be escaped using a backslash: + + Escape HEX Description + ------ --- ----------- + \a 0x07 Bell + \b 0x08 Backspace + \t 0x09 Horizontal Tab + \n 0x0A New Line / Line Feed + \f 0x0C Form Feed + \r 0x0D Carriage Return + \v 0x0B Vertical Tab + \" 0x22 A literal double quote + \' 0x27 A literal single quote + \\ 0x5C A literal backslash + \xXX Character XX in hexadecimal + \OOO Character OOO in octal + +Any other character following a backslash is an error. ===================== POSITIONAL PARAMETERS
Signature · 1 line
2.1.4
Quoted 20 lines · Ian Campbell
Signed-off-by Ian Campbell <[email protected]>Cc Jim Fehlig <[email protected]>--- docs/misc/xl-disk-configuration.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)docs/misc/xl-disk-configuration.txt +6
-0@@ -48,6 +48,24 @@ positionally or explicitly). Whitespace may appear before each parameter and will be ignored. +Metacharacters in a <diskspec> may be escaped using a backslash: + + Escape HEX Description + ------ --- ----------- + \a 0x07 Bell + \b 0x08 Backspace
docs/misc/xl-disk-configuration.txt positionally or explicitly). · line 66
Quoted 10 lines
docs/misc/xl-disk-configuration.txt +10
-0+ \t 0x09 Horizontal Tab + \n 0x0A New Line / Line Feed + \f 0x0C Form Feed + \r 0x0D Carriage Return + \v 0x0B Vertical Tab + \" 0x22 A literal double quote + \' 0x27 A literal single quote + \\ 0x5C A literal backslash + \xXX Character XX in hexadecimal + \OOO Character OOO in octal
Do you know how any of these would be useful in a diskspec? I guess I'm struggling to understand when a 'Bell' would be needed :-).
Regards,
Jim
Quoted 27 lines · Jim Fehlig
Quoted 26 lines · Ian Campbell
Signed-off-by Ian Campbell <[email protected]>Cc Jim Fehlig <[email protected]>---
docs/misc/xl-disk-configuration.txt | 18 ++++++++++++++++++1 file changed, 18 insertions(+)docs/misc/xl-disk- renamed from docs/misc/xl-disk-configuration.txt +0
-0configuration.txt
index 6a2118d..a03ad10 100644docs/misc/xl-disk-configuration.txt +0
-0@@ -48,6 +48,24 @@ positionally or explicitly).
Whitespace may appear before each parameter and will be ignored.docs/misc/xl-disk-configuration.txt +11
-0+Metacharacters in a <diskspec> may be escaped using a backslash: + + Escape HEX Description + ------ --- ----------- + \a 0x07 Bell + \b 0x08 Backspace + \t 0x09 Horizontal Tab + \n 0x0A New Line / Line Feed + \f 0x0C Form Feed + \r 0x0D Carriage Return + \v 0x0B Vertical Tab
Quoted 8 lines
Quoted 5 lines
+ \" 0x22 A literal double quote + \' 0x27 A literal single quote + \\ 0x5C A literal backslash + \xXX Character XX in hexadecimal + \OOO Character OOO in octal
Do you know how any of these would be useful in a diskspec? I guess I'm struggling to understand when a 'Bell' would be needed :-).
I've not got a clue -- these are just all the ones handled by xlu__cfgl_dequote, perhaps just for completeness?
This is applied to all strings in a cfg file, not just diskspecs, but I can't think of anything there where Bell would be useful either.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 37 lines · Ian Campbell
Quoted 27 lines · Jim Fehlig
Quoted 26 lines · Ian Campbell
Signed-off-by Ian Campbell <[email protected]>Cc Jim Fehlig <[email protected]>---
docs/misc/xl-disk-configuration.txt | 18 ++++++++++++++++++1 file changed, 18 insertions(+)docs/misc/xl-disk- renamed from docs/misc/xl-disk-configuration.txt +0
-0configuration.txt
index 6a2118d..a03ad10 100644docs/misc/xl-disk-configuration.txt +0
-0@@ -48,6 +48,24 @@ positionally or explicitly).
Whitespace may appear before each parameter and will be ignored.docs/misc/xl-disk-configuration.txt +11
-0+Metacharacters in a <diskspec> may be escaped using a backslash: + + Escape HEX Description + ------ --- ----------- + \a 0x07 Bell + \b 0x08 Backspace + \t 0x09 Horizontal Tab + \n 0x0A New Line / Line Feed + \f 0x0C Form Feed + \r 0x0D Carriage Return + \v 0x0B Vertical TabQuoted 8 lines
Quoted 5 lines
+ \" 0x22 A literal double quote + \' 0x27 A literal single quote + \\ 0x5C A literal backslash + \xXX Character XX in hexadecimal + \OOO Character OOO in octal
Do you know how any of these would be useful in a diskspec? I guess I'm struggling to understand when a 'Bell' would be needed :-).
Quoted 4 lines
I've not got a clue -- these are just all the ones handled by
xlu__cfgl_dequote, perhaps just for completeness?This is applied to all strings in a cfg file, not just diskspecs,
Having observed this it should have then occurred to me that perhaps this needs to be documented in xl.cfg(5) instead of in a disk specific location.
Should I move the above to docs/man/xl.cfg.pod.5 and apply pod markup to it?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 41 lines · Ian Campbell
Quoted 40 lines · Ian Campbell
Quoted 27 lines · Jim Fehlig
Quoted 26 lines · Ian Campbell
Signed-off-by Ian Campbell <[email protected]>Cc Jim Fehlig <[email protected]>---
docs/misc/xl-disk-configuration.txt | 18 ++++++++++++++++++1 file changed, 18 insertions(+)docs/misc/xl-disk- renamed from docs/misc/xl-disk-configuration.txt +0
-0configuration.txt
index 6a2118d..a03ad10 100644docs/misc/xl-disk-configuration.txt +0
-0@@ -48,6 +48,24 @@ positionally or explicitly).
Whitespace may appear before each parameter and will be ignored.docs/misc/xl-disk-configuration.txt +11
-0+Metacharacters in a <diskspec> may be escaped using a backslash: + + Escape HEX Description + ------ --- ----------- + \a 0x07 Bell + \b 0x08 Backspace + \t 0x09 Horizontal Tab + \n 0x0A New Line / Line Feed + \f 0x0C Form Feed + \r 0x0D Carriage Return + \v 0x0B Vertical TabQuoted 8 lines
Quoted 5 lines
+ \" 0x22 A literal double quote + \' 0x27 A literal single quote + \\ 0x5C A literal backslash + \xXX Character XX in hexadecimal + \OOO Character OOO in octal
Do you know how any of these would be useful in a diskspec? I guess I'm struggling to understand when a 'Bell' would be needed :-).
I've not got a clue -- these are just all the ones handled by
xlu__cfgl_dequote, perhaps just for completeness?
Quoted 7 lines
Quoted 1 line
This is applied to all strings in a cfg file, not just diskspecs,
Having observed this it should have then occurred to me that perhaps this needs to be documented in
xl.cfg(5)instead of in a disk specific location.Should I move the above to docs/man/xl.cfg.pod.5 and apply pod markup to it?
Agreed.
Quoted 35 lines · Ian Campbell
Quoted 26 lines · Jim Fehlig
Quoted 25 lines · Ian Campbell
Signed-off-by Ian Campbell <[email protected]>Cc Jim Fehlig <[email protected]>--- docs/misc/xl-disk-configuration.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)docs/misc/xl-disk- renamed from docs/misc/xl-disk-configuration.txt +0
-0configuration.txt
index 6a2118d..a03ad10 100644docs/misc/xl-disk-configuration.txt +10
-0@@ -48,6 +48,24 @@ positionally or explicitly). Whitespace may appear before each parameter and will be ignored. +Metacharacters in a <diskspec> may be escaped using a backslash: + + Escape HEX Description + ------ --- ----------- + \a 0x07 Bell + \b 0x08 Backspace + \t 0x09 Horizontal Tab + \n 0x0A New Line / Line Feed + \f 0x0C Form Feed + \r 0x0D Carriage ReturnQuoted 8 lines
docs/misc/xl-disk-configuration.txt positionally or explicitly). · line 66
Quoted 6 lines
docs/misc/xl-disk-configuration.txt +6
-0+ \v 0x0B Vertical Tab + \" 0x22 A literal double quote + \' 0x27 A literal single quote + \\ 0x5C A literal backslash + \xXX Character XX in hexadecimal + \OOO Character OOO in octalDo you know how any of these would be useful in a diskspec? I guess I'm struggling to understand when a 'Bell' would be needed :-).
Quoted 2 lines
I've not got a clue -- these are just all the ones handled by
xlu__cfgl_dequote, perhaps just for completeness?
Maybe this code was copied from elsewhere and the unneeded/unused escapes were not removed. Regardless, it's probably unwise to remove things like bell, form feed, and vertical tab now.
Quoted 2 lines
This is applied to all strings in a cfg file, not just diskspecs,
Ah, right. And as such, I agree with your follow-up comment that this info should then be in xl.cfg(5).
Regards,
Jim