mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
10b9d77bf1
Few new things available from now on: - Data deduplication. - Triple parity RAIDZ (RAIDZ3). - zfs diff. - zpool split. - Snapshot holds. - zpool import -F. Allows to rewind corrupted pool to earlier transaction group. - Possibility to import pool in read-only mode. MFC after: 1 month
21 lines
312 B
C
21 lines
312 B
C
/* $FreeBSD$ */
|
|
|
|
#ifndef _OPENSOLARIS_PRIV_H_
|
|
#define _OPENSOLARIS_PRIV_H_
|
|
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#include <assert.h>
|
|
|
|
#define PRIV_SYS_CONFIG 0
|
|
|
|
static __inline int
|
|
priv_ineffect(int priv)
|
|
{
|
|
|
|
assert(priv == PRIV_SYS_CONFIG);
|
|
return (geteuid() == 0);
|
|
}
|
|
|
|
#endif /* !_OPENSOLARIS_PRIV_H_ */
|