Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2018 09:46:11 +0200
From:      Ali Abdallah <aliovx@gmail.com>
To:        Mateusz Guzik <mjguzik@gmail.com>
Cc:        Ed Schouten <ed@nuxi.nl>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: fuser does not list id of processes that have a file
Message-ID:  <CAO3OKx9A6a_xxtKtksqLSoAkriQUtTdSGL-L--FP_r-_QeCOzA@mail.gmail.com>
In-Reply-To: <CAGudoHFSrgx0_RnzmSvNWzMDGmHL_VO%2Bqj-iFpGUMdTLRSrUGQ@mail.gmail.com>
References:  <CAO3OKx84RVTXTEp8APdoRsnKW%2Bs=Km%2BBzK-izWuQTZ5M9gvmHQ@mail.gmail.com> <CAGudoHE=Bah=goAJDPT0jDy%2BXfdBmo_iU85Hzrk-5sk3LbT8SQ@mail.gmail.com> <CABh_MKmkEg7g6QyfNa2Lph-zDKcC14wGhajWv2e4Si3vcpXh7w@mail.gmail.com> <CAO3OKx9pAk43TL1f57H%2BWcQJ6ORFq0okLDbiyfwxuoFsXsL7hg@mail.gmail.com> <CAGudoHFSrgx0_RnzmSvNWzMDGmHL_VO%2Bqj-iFpGUMdTLRSrUGQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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@gmail.com> wrote:

> On 10/17/18, Ali Abdallah <aliovx@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>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO3OKx9A6a_xxtKtksqLSoAkriQUtTdSGL-L--FP_r-_QeCOzA>