From owner-freebsd-current@freebsd.org Thu Oct 18 21:24:00 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7441F7599F for ; Thu, 18 Oct 2018 21:24:00 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 65FA57FAB6 for ; Thu, 18 Oct 2018 21:24:00 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk1-x744.google.com with SMTP id v68-v6so19772881qka.2 for ; Thu, 18 Oct 2018 14:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=J4bAnBJVldCZNp1IAY+vlogP/XWrIJOqjJY0eNFhB+M=; b=LqG6GrB/q+4H+vJLfrs0Fhm73LGtb5Pxvky34mw+rEELSyvZYApCTw8zeXvzKnSTjE pJCEoR6czpjq9MJVxi0pJtbVvxBx8z+NOeRFXcGqCyhUnm6x68f5bzD8UEdCX/Jjd/Ug Uz0hf1qC0Ks8T8TxraSMrX0G53CdWscYMswLx8u35a+PnwuNQWyzHNt+unPXJWPF08el 20/V6zmkDw/v5e6TqucAO+kZjUN5poN1U89xC3ECikmNKAbmbmyP0sb/GW0WAcPJ/ypH TvBb+iJINBMWXc/mYcN8lfobCL4XRg/dbiecCLPQ/tdhJ/WW8gecMDBqJg/hkjCEuI29 Dk2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=J4bAnBJVldCZNp1IAY+vlogP/XWrIJOqjJY0eNFhB+M=; b=QOtcH7Bdvb4TP0gxkGvOGHxwCBivvCeLR4JGFr3+N1snSKFK1U/8+x/AqYrIBEyYve QPMSXA/GkyjKhU2Fn6ABWY8nRqgFhkjOF+GSVm3O4c3eqGMn2XaPyrDka0PoUC6tnsYP IstNJ/XDpLen4/6mSATK5JfK3MNp/x40K97vKNTUM+e9+KoT6rMgSeOn35amgLYyAC4T sdZZlX/dLADj7cU79MuMtQNkUCfOZ9lP7FPKWkUETr9brxEMpnQY1Brz0s+kFk2WgOht be2tAepKU1Zbjg3Nnxd/HAhVVfUl70m84/qSvjGLSi1JFhvD+/69la4DF1hRrCjB5V3b plLA== X-Gm-Message-State: ABuFfohzuEPQTtjTlYYGXcTaTddxtgRMCKe47hwpIFH6Rka4U3gsy1k7 tLFYHQmQcIugXD/F0A0RUYlzTYrfkhyoEtcCtkY= X-Google-Smtp-Source: ACcGV633zQ52zGShFmweqW5c0t9dWsvcBuV3F9nm2ajpyB9sYIghAOh3GMup8ELFliAq3GOKEAe4939XRwZtt7N5pIo= X-Received: by 2002:a37:2b9e:: with SMTP id r30-v6mr3629404qkr.259.1539897840054; Thu, 18 Oct 2018 14:24:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:362e:0:0:0:0:0 with HTTP; Thu, 18 Oct 2018 14:23:59 -0700 (PDT) In-Reply-To: References: From: Mateusz Guzik Date: Thu, 18 Oct 2018 23:23:59 +0200 Message-ID: Subject: Re: fuser does not list id of processes that have a file To: Ali Abdallah Cc: ed@nuxi.nl, freebsd-current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2018 21:24:00 -0000 On 10/17/18, Ali Abdallah wrote: >> diff --git a/usr.bin/fstat/fuser.c b/usr.bin/fstat/fuser.c >> index b4225328fc1f..17d06f1c5b13 100644 >> --- a/usr.bin/fstat/fuser.c >> +++ b/usr.bin/fstat/fuser.c >> @@ -92,7 +92,7 @@ struct consumer { >> STAILQ_ENTRY(consumer) next; >> }; >> struct reqfile { >> - uint32_t fsid; >> + uint64_t fsid; >> uint64_t fileid; >> const char *name; >> STAILQ_HEAD(, consumer) consumers; > > The above patch does not resolve the problem for me. > Are you sure you recompiled and reinstalled the tool with the patch applied? You can recompile and install like this: # make -j 3 clean all install If this indeed still does not work, can you show output of: uname -m mount I tested on zfs, perhaps there is something extra going on on other filesystems. -- Mateusz Guzik