Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2018 08:07:42 +0200
From:      Ali Abdallah <aliovx@gmail.com>
To:        ed@nuxi.nl
Cc:        mjguzik@gmail.com, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: fuser does not list id of processes that have a file
Message-ID:  <CAO3OKx9pAk43TL1f57H%2BWcQJ6ORFq0okLDbiyfwxuoFsXsL7hg@mail.gmail.com>
In-Reply-To: <CABh_MKmkEg7g6QyfNa2Lph-zDKcC14wGhajWv2e4Si3vcpXh7w@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>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

Regards.


On Tue, Oct 16, 2018 at 5:17 PM Ed Schouten <ed@nuxi.nl> wrote:

> Hi there,
>
> Op di 16 okt. 2018 om 15:05 schreef Mateusz Guzik <mjguzik@gmail.com>:
> >  struct reqfile {
> > -       uint32_t        fsid;
> > +       uint64_t        fsid;
> >         uint64_t        fileid;
>
> Considering that these are based on sb.st_{ino,dev}, maybe better to
> use the occasion to switch these fields to dev_t and ino_t?
>
> --
> Ed Schouten <ed@nuxi.nl>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO3OKx9pAk43TL1f57H%2BWcQJ6ORFq0okLDbiyfwxuoFsXsL7hg>