From: Sergey Lysanov <slysa...@virtuozzo.com>

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 <slysa...@virtuozzo.com>

(cherry-picked from a65a2e655b78ac294822ed37e956815c138b1a43)
Signed-off-by: Andrey Zhadchenko <andrey.zhadche...@virtuozzo.com>

diff --git a/fs/file.c b/fs/file.c
index 0ed1c4c..e594ac4 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -949,6 +949,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned 
flags)
        spin_unlock(&files->file_lock);
        return err;
 }
+EXPORT_SYMBOL(replace_fd);
 
 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
 {
diff --git a/fs/pipe.c b/fs/pipe.c
index 90de2ee..2e223ed 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -788,6 +788,7 @@ int create_pipe_files(struct file **res, int flags)
        iput(inode);
        return err;
 }
+EXPORT_SYMBOL(create_pipe_files);
 
 static int __do_pipe_flags(int *fd, struct file **files, int flags)
 {
-- 
1.8.3.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to