fuser does not list id of processes that have a file
Ali Abdallah
aliovx at gmail.com
Sat Oct 20 07:46:25 UTC 2018
>> I tested on zfs, perhaps there is something extra going on on other
filesystems.
I tested on UFS2, and I get nothing out of the patched fuser.c.
On Thu, Oct 18, 2018 at 11:24 PM Mateusz Guzik <mjguzik at gmail.com> wrote:
> On 10/17/18, Ali Abdallah <aliovx at gmail.com> 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 <mjguzik gmail.com>
>
More information about the freebsd-current
mailing list