Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2018 15:01:31 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Ali Abdallah <aliovx@gmail.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: fuser does not list id of processes that have a file
Message-ID:  <CAGudoHE=Bah=goAJDPT0jDy%2BXfdBmo_iU85Hzrk-5sk3LbT8SQ@mail.gmail.com>
In-Reply-To: <CAO3OKx84RVTXTEp8APdoRsnKW%2Bs=Km%2BBzK-izWuQTZ5M9gvmHQ@mail.gmail.com>
References:  <CAO3OKx84RVTXTEp8APdoRsnKW%2Bs=Km%2BBzK-izWuQTZ5M9gvmHQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/16/18, Ali Abdallah <aliovx@gmail.com> 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 <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHE=Bah=goAJDPT0jDy%2BXfdBmo_iU85Hzrk-5sk3LbT8SQ>