what's in fsid_t structure

2007-12-24 20:50:00

Hi,

In /usr/include/sys/vfs.h we have:

===
/*
* File system identifier. Should be unique (at least per machine).
*/
typedef struct {
int val[2]; /* file system id type */
} fsid_t;
===

Looks like val[1] in the above contains type of the filesystem (0x0002 -
UFS, 0x000B - tmpfs, 0x03E7 - VxFS). I would like to find out where this
value is taken from or based on what it is built.

The reason -- we have a filesystem (LCS samfs) for which this value
sometimes changes between reboots which, in turn, causes stale NFS file
handles on clients mounting the filesystem trough NFS.

--

Anton Solovyev

Comments

Got something to say?

You must be logged in to post a comment.