Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 06:54:26 GMT
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e18fbe6f19ed - main - fuser: restore functionality by fixing fsid type
Message-ID:  <202111010654.1A16sQ2L000299@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=e18fbe6f19ed106f035c7d2aaeade6eb55cc0b5a

commit e18fbe6f19ed106f035c7d2aaeade6eb55cc0b5a
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-01 06:40:17 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2021-11-01 06:45:26 +0000

    fuser: restore functionality by fixing fsid type
    
    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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.bin/fstat/fuser.c b/usr.bin/fstat/fuser.c
index b4225328fc1f..ad4aebf4a2cb 100644
--- a/usr.bin/fstat/fuser.c
+++ b/usr.bin/fstat/fuser.c
@@ -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;
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111010654.1A16sQ2L000299>