From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.thunk.org ([74.207.234.97]:35446 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbeKPFaF (ORCPT ); Fri, 16 Nov 2018 00:30:05 -0500 Date: Thu, 15 Nov 2018 14:20:58 -0500 From: "Theodore Y. Ts'o" To: "Darrick J. Wong" Cc: linux-ext4 Subject: Re: [PATCH] e2scrub: fix systemd escaping again Message-ID: <20181115192058.GE20617@thunk.org> References: <20181105175946.GA4124@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181105175946.GA4124@magnolia> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Nov 05, 2018 at 09:59:46AM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong > > Apparently newer versions of systemd than the one on this author's > laptop now complain about lack of (path) escaping in unit > instance variable contents: > > # e2scrub_all > Scrubbing /home... > Invalid unit name "e2scrub@/home" was escaped as "e2scrub@-home" > (maybe you should use systemd-escape?) > Starting Online ext4 Metadata Check for /home... > > So change the escape_path_for_systemd function to escape paths > unconditionally to make the warning go away. > > Signed-off-by: Darrick J. Wong Thanks, applied. - Ted