summaryrefslogtreecommitdiffstats
path: root/libmount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2012-06-28 15:40:16 +0200
committerKarel Zak2012-06-28 15:40:16 +0200
commitf7f29b564073831c9d1a8cdf9deaf039c0bcb1b6 (patch)
treeb63b6c298626fea30d2461832cec42e48f56bc11 /libmount/src/mountP.h
parentfindmnt: add --task <tid> option (diff)
downloadkernel-qcow2-util-linux-f7f29b564073831c9d1a8cdf9deaf039c0bcb1b6.tar.gz
kernel-qcow2-util-linux-f7f29b564073831c9d1a8cdf9deaf039c0bcb1b6.tar.xz
kernel-qcow2-util-linux-f7f29b564073831c9d1a8cdf9deaf039c0bcb1b6.zip
libmount: save task ID for mountinfo tiles
Add new function mnt_fs_get_tid() to get task ID for the given filesystem. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r--libmount/src/mountP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h
index f7cd7d53d..a2922c2b3 100644
--- a/libmount/src/mountP.h
+++ b/libmount/src/mountP.h
@@ -218,6 +218,7 @@ struct libmnt_fs {
int priority; /* swaps[5]: swap priority */
int flags; /* MNT_FS_* flags */
+ pid_t tid; /* /proc/<tid>/mountinfo otherwise zero */
void *userdata; /* library independent data */
};