Commit 7a99e699 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

mnt: Export __open_mountpoint

We gonna need it for inotify handle testing.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b504dac6
...@@ -95,6 +95,7 @@ extern int mntns_get_root_by_mnt_id(int mnt_id); ...@@ -95,6 +95,7 @@ extern int mntns_get_root_by_mnt_id(int mnt_id);
extern struct ns_id *lookup_nsid_by_mnt_id(int mnt_id); extern struct ns_id *lookup_nsid_by_mnt_id(int mnt_id);
extern int open_mount(unsigned int s_dev); extern int open_mount(unsigned int s_dev);
extern int __open_mountpoint(struct mount_info *pm, int mnt_fd);
extern struct fstype *find_fstype_by_name(char *fst); extern struct fstype *find_fstype_by_name(char *fst);
extern bool add_fsname_auto(const char *names); extern bool add_fsname_auto(const char *names);
......
...@@ -1004,7 +1004,7 @@ static struct mount_info *mnt_build_tree(struct mount_info *list, bool insert_ro ...@@ -1004,7 +1004,7 @@ static struct mount_info *mnt_build_tree(struct mount_info *list, bool insert_ro
* mnt_fd is a file descriptor on the mountpoint, which is closed in an error case. * mnt_fd is a file descriptor on the mountpoint, which is closed in an error case.
* If mnt_fd is -1, the mountpoint will be opened by this function. * If mnt_fd is -1, the mountpoint will be opened by this function.
*/ */
static int __open_mountpoint(struct mount_info *pm, int mnt_fd) int __open_mountpoint(struct mount_info *pm, int mnt_fd)
{ {
dev_t dev; dev_t dev;
struct stat st; struct stat st;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment