chase: port to statx()
In one of the next commits we want to acquire .stx_mnt_id from statx() for each inode we traverse (plain fstat() doesn't provide that field). Hence let's port chase() over to statx() as preparation for that. No change in behaviour.
This commit is contained in:
+2
-1
@@ -32,7 +32,8 @@ typedef enum ChaseFlags {
|
||||
CHASE_MUST_BE_SOCKET = 1 << 16, /* Fail if returned inode fd is not a socket */
|
||||
} ChaseFlags;
|
||||
|
||||
bool unsafe_transition(const struct stat *a, const struct stat *b);
|
||||
int statx_unsafe_transition(const struct statx *a, const struct statx *b);
|
||||
bool stat_unsafe_transition(const struct stat *a, const struct stat *b);
|
||||
|
||||
/* How many iterations to execute before returning -ELOOP */
|
||||
#define CHASE_MAX 128U
|
||||
|
||||
Reference in New Issue
Block a user