diff options
author | CismonX <admin@cismon.net> | 2024-06-21 04:36:47 +0800 |
---|---|---|
committer | Bernd Schubert <bernd.schubert@fastmail.fm> | 2024-06-25 07:16:49 +0200 |
commit | 285465fbdb5a185eeb6bd7dc077356056c61e39f (patch) | |
tree | d43a188ce9161de42379921399aab051e4726191 /example/notify_store_retrieve.c | |
parent | 0a62f5d76137b25f37b99caf726ceedbf094d60e (diff) | |
download | libfuse-285465fbdb5a185eeb6bd7dc077356056c61e39f.tar.gz |
Fix wrong use of the EBADFD errno
should use EBADF instead
Diffstat (limited to 'example/notify_store_retrieve.c')
-rw-r--r-- | example/notify_store_retrieve.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/notify_store_retrieve.c b/example/notify_store_retrieve.c index 7145bf4..7669612 100644 --- a/example/notify_store_retrieve.c +++ b/example/notify_store_retrieve.c @@ -353,14 +353,14 @@ static void* update_fs_loop(void *data) { bufv.buf[0].flags = 0; /* - * Some errors (ENOENT, EBADFD, ENODEV) have to be accepted as they + * Some errors (ENOENT, EBADF, ENODEV) have to be accepted as they * might come up during umount, when kernel side already releases * all inodes, but does not send FUSE_DESTROY yet. */ ret = fuse_lowlevel_notify_store(se, FILE_INO, 0, &bufv, 0); if ((ret != 0 && !is_umount) && - ret != -ENOENT && ret != -EBADFD && ret != -ENODEV) { + ret != -ENOENT && ret != -EBADF && ret != -ENODEV) { fprintf(stderr, "ERROR: fuse_lowlevel_notify_store() failed with %s (%d)\n", strerror(-ret), -ret); @@ -371,7 +371,7 @@ static void* update_fs_loop(void *data) { kernel to send us back the stored data */ ret = fuse_lowlevel_notify_retrieve(se, FILE_INO, MAX_STR_LEN, 0, (void*) strdup(file_contents)); - assert((ret == 0 || is_umount) || ret == -ENOENT || ret == -EBADFD || + assert((ret == 0 || is_umount) || ret == -ENOENT || ret == -EBADF || ret != -ENODEV); if(retrieve_status == 0) retrieve_status = 1; |