projects
/
project
/
fstools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39558a1
)
blockd: fix trigger name
author
Daniel Golle
<
[email protected]
>
Thu, 15 Jul 2021 01:03:38 +0000
(
02:03
+0100)
committer
Daniel Golle
<
[email protected]
>
Thu, 15 Jul 2021 01:18:35 +0000
(
02:18
+0100)
Make it 'mount.add' instead of just 'add' which is more obvious when
used with procd_add_raw_trigger.
Signed-off-by: Daniel Golle <
[email protected]
>
blockd.c
patch
|
blob
|
history
diff --git
a/blockd.c
b/blockd.c
index 541fedcefe99c836c18ba28f0a870c20d0da806d..0520009055fe49fb6c3d44db6e079ef2639d26de 100644
(file)
--- a/
blockd.c
+++ b/
blockd.c
@@
-499,15
+499,18
@@
static int send_block_notification(struct ubus_context *ctx, const char *action,
const char *devname)
{
struct blob_buf buf = { 0 };
+ char evname[16] = "mount.";
int err;
if (!ctx)
return -ENXIO;
+ strncat(evname, action, sizeof(evname) - 1);
+
blob_buf_init(&buf, 0);
blobmsg_add_string(&buf, "devname", devname);
- err = ubus_notify(ctx, &block_object,
action
, buf.head, -1);
+ err = ubus_notify(ctx, &block_object,
evname
, buf.head, -1);
return err;
}