Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2003 16:01:15 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        arch@freebsd.org
Subject:   fsid_t
Message-ID:  <xzpvfwf6j4k.fsf@flood.ping.uio.no>

next in thread | raw e-mail | index | archive | help
fsid_t is currently defined as a struct containing an array of two
32-bit ints:

typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */

which is ridiculous as the only place where this is actually useful is
when it is initialized (val[0] is set to the udev_t and val[1] to the
vfs type number) and this can easily be handled by a macro.  The other
significant use of fsid is to compare the fsids of two files to
determine whether they are on the same fs; that would be far easier to
do if fsid_t was defined as uint64_t.

Are there any objections to making fsid_t a uint64_t?

DES
-- 
Dag-Erling Smorgrav - des@ofug.org



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