fuser does not list id of processes that have a file
Mateusz Guzik
mjguzik at gmail.com
Tue Oct 16 13:01:34 UTC 2018
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
@@ -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>
More information about the freebsd-current
mailing list