From owner-freebsd-current@freebsd.org Tue Oct 16 13:01:33 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 D7B0310D26BD for ; Tue, 16 Oct 2018 13:01:33 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 73AA68BED1 for ; Tue, 16 Oct 2018 13:01:33 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-qk1-x735.google.com with SMTP id g20-v6so13987965qke.9 for ; Tue, 16 Oct 2018 06:01:33 -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=PcedySedNeEf8D9b5jhySfRDP/A9zBY0YnK9Ys06S4c=; b=ZnxrXTv+mLt1MKglZrxWWd2hz8jm7lg88dDxjMalIKwZxV+JGlwMVVSICeunRz9CGa gWYXn5+mLkDyTVSIjQN6iEy0/wS0NP2rI7GwXBhsFlc5SsXTfKGEnOnXxQM6nMnB0yea T1Y8dQLYtzyL6AAYzgW4KjJ2tNT1COUkn/9n/8OnmizSqjuUcY0U72eM+4rewpKHDbq0 1YWUHkU11bEM1j9u0cNX/ayiPufl8UA3xRg5RvGzot27UJXGIazZyRkS/3EJ2T0T2XfS oHMC4lNGxKLleaF2/2op9U2N22Ac0Mh+A034d90qZbKMR8R6kMPXwGFcrCzkVQ0wwvje E8Fw== 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=PcedySedNeEf8D9b5jhySfRDP/A9zBY0YnK9Ys06S4c=; b=hzpHK/ZYHSKYv5REwYA4wAQenjldxor7hXE9bWPV6EmhwfZ0+clpi5kUsk1SqN8UMA wVLtaE2M6+vOyLN2FpGhGCU+Ln7ubYmKWE7ykXY1sEzZCW1RIqJjGXhBOMf6PRzQbNCO E7x3WIc5fIyCAxMvd4jKPrSFiHoDm6ZrnIIavIrfrh0KzjDz14ZcOtGHyrChpC4Z39Bl yEqMzoYBvgjEJVJWtkzf+Wv58nHhVcduvxE9+BDJLXf2hJ50qTC/eNfaubYWzRIAabV3 rnq2LzhCMtRAR/iUG66KiByQG3KC6mRPl+9q5s4NszWNIatrr1/xHsHHS4VFB9I/rTss kHkw== X-Gm-Message-State: ABuFfojRFoJPdxLw2YrdDwK9XZLBzpF3griYNJm/7xPRJHaEO/j4bnbv EKSg0hSSKLcYAIeI8FGcGUGpZczaysWlsE7UAvlMmg== X-Google-Smtp-Source: ACcGV62nwIHY4uWHpIQcS75UPSmi60yRv1yILe4gU3ch1ldRAF/xxCYeH2i+e0dK3kIkeIxbAKa6lE5onoPMow/wfwQ= X-Received: by 2002:a37:17e4:: with SMTP id 97-v6mr20606192qkx.58.1539694892918; Tue, 16 Oct 2018 06:01:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:362e:0:0:0:0:0 with HTTP; Tue, 16 Oct 2018 06:01:31 -0700 (PDT) In-Reply-To: References: From: Mateusz Guzik Date: Tue, 16 Oct 2018 15:01:31 +0200 Message-ID: Subject: Re: fuser does not list id of processes that have a file To: Ali Abdallah Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Tue, 16 Oct 2018 13:01:34 -0000 On 10/16/18, Ali Abdallah wrote: > Hello, > > On FreeBSD 12 ALPHA9 > >> less .vimrc >> fuser .vimrc > .vimrc: > > gives no pid, on FreeBSD 11.2 the above works as expected. > try this: 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; -- Mateusz Guzik