[Devel] [PATCH] Export symbols replace_fd and create_pipe_files

Sergey Lysanov slysanov at virtuozzo.com
Wed Jan 30 18:19:33 MSK 2019


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.

Related to #VSTOR-10187

Signed-off-by: Sergey Lysanov <slysanov at virtuozzo.com>
---
 fs/file.c | 1 +
 fs/pipe.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/fs/file.c b/fs/file.c
index 970c907..d8f1528 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -955,6 +955,7 @@ out_unlock:
 	spin_unlock(&files->file_lock);
 	return err;
 }
+EXPORT_SYMBOL(replace_fd);
 
 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
 {
diff --git a/fs/pipe.c b/fs/pipe.c
index ebe696a..24b7577 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -996,6 +996,7 @@ err_inode:
 	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




More information about the Devel mailing list