]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
fuser: restore functionality by fixing fsid type
authorAndriy Gapon <avg@FreeBSD.org>
Mon, 1 Nov 2021 06:40:17 +0000 (08:40 +0200)
committerAndriy Gapon <avg@FreeBSD.org>
Mon, 1 Nov 2021 06:45:26 +0000 (08:45 +0200)
Use types from sys/stat.h for the filesystem and inode numbers for extra
safety.

PR: 259504
Reported by: Markus Wild <freebsd-bugs@virtualtec.ch>
MFC after: 1 week

usr.bin/fstat/fuser.c

index b4225328fc1f83864c3636c021e24da6c76d5b0f..ad4aebf4a2cb5dcbc7a42c72eded581dccf285f9 100644 (file)
@@ -92,8 +92,8 @@ struct consumer {
        STAILQ_ENTRY(consumer)  next;
 };
 struct reqfile {
-       uint32_t        fsid;
-       uint64_t        fileid;
+       dev_t           fsid;
+       ino_t           fileid;
        const char      *name;
        STAILQ_HEAD(, consumer) consumers;
 };