Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1429407rwb; Fri, 12 Aug 2022 00:15:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6mFVAtGgImpZtygfsQCXfSZNPV+PgpJHZDtexmgsrYD1lR5moIDd5l+vtHpWWlWPRn/jp7 X-Received: by 2002:a17:907:c07:b0:730:b91b:2cab with SMTP id ga7-20020a1709070c0700b00730b91b2cabmr1844498ejc.294.1660288521080; Fri, 12 Aug 2022 00:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660288521; cv=none; d=google.com; s=arc-20160816; b=EwDXOdiJ/qIpjq5vKLxCLBJ1lA13umo1LszwV0AH49FhcrMz8q6U9riteCsNnLjiiM MC5UUZ3fYV7aK3s4wVtd1v6vcTbi+WX1sVLv4x+tJo4Vo8GM5t3AJL3+955iE3VBazPo maruzlJn717jKIwexc2t7xlkdod6Xb1pQ4034fXT/Xu0i5u91K1ofl1ORVIZgWlzQNjc fnZ0nu0+Rs9F00GWlfXdUf21gTFwWUi0hJmMunxvAvcE7euqtKnnXzGkLEpjaMSjSaAT mLyGqzPWlyI9AmviK7PVUMHi22FET6z1aoeyGciPfcHXK0etzUqFOx3h0IjCfESwKylc 1b4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RxCWTrUzTKGJdfn8jwCYRA0U1IFHnE8cY7upB+72a5c=; b=z5sEGIERZqxKbL9aVzCd+ck4cojhfXgqzElLe0dFJXn9q2eJ9yRGF8Nv1R7ixKyrOB tGoe/BhUs+l1HdC9/knz087AVah5ZzUUWj648iYOIlzcSkdVgQq3rKvzmZwQDi9tWV6j JKbHNBBK+OI1xwQBTfv2NNSIWQMnp8ZrtTb2fYq16vdWrf9VCryTmsxuWFKqIwC2dEoS nXPphfj/rlPNqXrKPncMbRYa0KuhpCjAsIqXrM7d9BPWrKvdUc8MDaNn2ZKU/lZEog8k qQZNOgWNcQpIvoQJNmrIb0Snf8Bz9d95JU+MY/BibspyQWgo5hilfd2izcYjElN5HeuD pZXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YiT0XJE/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw9-20020a170906478900b0072b61694e92si1553922ejc.350.2022.08.12.00.14.46; Fri, 12 Aug 2022 00:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YiT0XJE/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237044AbiHLHMs (ORCPT + 99 others); Fri, 12 Aug 2022 03:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233593AbiHLHMr (ORCPT ); Fri, 12 Aug 2022 03:12:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86C592B26A for ; Fri, 12 Aug 2022 00:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660288365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RxCWTrUzTKGJdfn8jwCYRA0U1IFHnE8cY7upB+72a5c=; b=YiT0XJE/mmCpapj7Pln1KdT8uAK2ckPryxn8cy+8wlQtr21Jl4c1bl8vct49/fTQ8UB+o0 DW/doOQ4+ZTpreg9jCGGGkbohC5ayr4N9K5VRKWNiNEAe1AjUG89XtoWcriiehnvFlkDc3 5XgbJefkdedeiL5UKwICCUjsGGQLYf0= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-563-UKXpHHQjO76Y0n_vFr1sQw-1; Fri, 12 Aug 2022 03:12:42 -0400 X-MC-Unique: UKXpHHQjO76Y0n_vFr1sQw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0CE2E294EDFC; Fri, 12 Aug 2022 07:12:41 +0000 (UTC) Received: from fedora (unknown [10.40.192.119]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 60C271415124; Fri, 12 Aug 2022 07:12:40 +0000 (UTC) Date: Fri, 12 Aug 2022 09:12:38 +0200 From: Lukas Czerner To: Theodore Ts'o Cc: linux-ext4@vger.kernel.org, Daniel Ng Subject: Re: [PATCH] e2fsprogs: fix device name parsing to resolve names containing '=' Message-ID: <20220812071238.d766gj3do7clwhdn@fedora> References: <20220805094703.155967-1-lczerner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Aug 10, 2022 at 11:18:23PM -0400, Theodore Ts'o wrote: > Hi Lukas, > > Could you move get_devname() into its own file in lib/support? e.g., > create a devname.c and devname.h. > > The reason for this is that plausible.c tries to call libmagic via > dlopen() so we don't need to drag libmagic into the minimal package > set for distros. But that means that any executiables that try to use > devname() will drag in lib/support/pausible.c, which means if you > don't change the makefiles to link in -ldl, static linking will fail: > > - Ted Ah, I didn't notice that. I'll move it into a separate file, devname.[ch] sounds good. Thanks! -Lukas