On Thu, Jun 04, 2020 at 03:18:06PM +0800, Qu Wenruo wrote: > This patch introduces a new "rescue=" mount option group for all those > mount options for data recovery. > > Different rescue sub options are seperated by ':'. E.g > "ro,rescue=nologreplay:usebackuproot". > (The original plan is to use ';', but ';' needs to be escaped/quoted, > or it will be interpreted by bash) The separators available: - "," already used for mount options - ";" needs shell escaping - "|" same - "+" that also looks ok - * & # $ % @ all would be confusing I guess so ":" seems like a good choice. > And obviously, user can specify rescue options one by one like: > "ro,rescue=nologreplay,rescue=usebackuproot" > > The following mount options are converted to "rescue=", old mount > options are deprecated but still available for compatibility purpose: > > - usebackuproot > Now it's "rescue=usebackuproot" > > - nologreplay > Now it's "rescue=nologreplay" > > Signed-off-by: Qu Wenruo <wqu@xxxxxxxx> I'll add the patches as topic branch to for-next and to misc-next eventually. Thanks.
