Re: fuser does not list id of processes that have a file

From: Mateusz Guzik <mjguzik_at_gmail.com>
Date: Tue, 16 Oct 2018 15:01:31 +0200
On 10/16/18, Ali Abdallah <aliovx_at_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
_at__at_ -92,7 +92,7 _at__at_ 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>
Received on Tue Oct 16 2018 - 11:01:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC