The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at
https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.12
------>
commit 201c525ea9ace79eb36ee10f342c689b076c4920
Author: Sergey Lysanov <[email protected]>
Date: Wed Oct 20 11:40:40 2021 +0300
fs: Export symbols replace_fd() and create_pipe_files()
Need to create a pipe for usermodehelper from SCST.
User helper will read SCSI persistent reservations
from pipe and sync it with other nodes in cluster.
Kernel also will read new persistent reservations
from userspace by invoking helper with pipe.
Required for https://pmc.acronis.com/browse/VSTOR-10187
Signed-off-by: Sergey Lysanov <[email protected]>
(cherry-picked from vz7 commit a65a2e655b78 ("fs: Export symbols
replace_fd()
and create_pipe_files()"))
Signed-off-by: Andrey Zhadchenko <[email protected]>
(cherry picked from vz8 commit 63148b36d11de4e546b163948cb32279516b789a)
Signed-off-by: Andrey Zhadchenko <[email protected]>
---
fs/file.c | 1 +
fs/pipe.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/fs/file.c b/fs/file.c
index fabb57dd1b9d..49c233d6dcd9 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -1116,6 +1116,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned
flags)
spin_unlock(&files->file_lock);
return err;
}
+EXPORT_SYMBOL(replace_fd);
/**
* __receive_fd() - Install received file into file descriptor table
diff --git a/fs/pipe.c b/fs/pipe.c
index 7f07ce7199bb..19e0a8990a42 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -946,6 +946,7 @@ int create_pipe_files(struct file **res, int flags)
stream_open(inode, res[1]);
return 0;
}
+EXPORT_SYMBOL(create_pipe_files);
static int __do_pipe_flags(int *fd, struct file **files, int flags)
{
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel