X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fpatches%2Funbreak-blkmapd-rpc_pipefs-run.patch;fp=debian%2Fpatches%2Funbreak-blkmapd-rpc_pipefs-run.patch;h=2e73b818f6adf6b23fa97cb581f1c0426476cbe7;hp=0000000000000000000000000000000000000000;hb=52a7a44f95fab091becece32a6995a409fd59fd1;hpb=6d9a853c096f129de3cc22e74bc450dfa73e1d56 diff --git a/debian/patches/unbreak-blkmapd-rpc_pipefs-run.patch b/debian/patches/unbreak-blkmapd-rpc_pipefs-run.patch new file mode 100644 index 0000000..2e73b81 --- /dev/null +++ b/debian/patches/unbreak-blkmapd-rpc_pipefs-run.patch @@ -0,0 +1,28 @@ +From: Christoph Hellwig +Subject: nfs-common: move of rpc_pipefs mountpoint to /run breaks blkmapd + +commit ba649fa4 ("Migrate the rpc_pipefs mount out of /var/lib to /run, to +better support /var on NFS.") in the Debian packaging repo completely +broke blkmapd, which still looks for rpc_pipefs in the old place. +From looking in the BTS gssd also seems to have the same problem (#632141). + +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828826 + +diff --git a/utils/blkmapd/device-discovery.c b/utils/blkmapd/device-discovery.c +index 69f00fa..7b00c90 100644 +--- a/utils/blkmapd/device-discovery.c ++++ b/utils/blkmapd/device-discovery.c +@@ -55,9 +55,9 @@ + #define EVENT_SIZE (sizeof(struct inotify_event)) + #define EVENT_BUFSIZE (1024 * EVENT_SIZE) + +-#define BL_PIPE_FILE "/var/lib/nfs/rpc_pipefs/nfs/blocklayout" +-#define NFSPIPE_DIR "/var/lib/nfs/rpc_pipefs/nfs" +-#define RPCPIPE_DIR "/var/lib/nfs/rpc_pipefs" ++#define BL_PIPE_FILE "/run/rpc_pipefs/nfs/blocklayout" ++#define NFSPIPE_DIR "/run/rpc_pipefs/nfs" ++#define RPCPIPE_DIR "/run/rpc_pipefs" + #define PID_FILE "/run/blkmapd.pid" + + struct bl_disk *visible_disk_list; +