]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: cleanup fdisk_deassign_device() docs
authorKarel Zak <kzak@redhat.com>
Fri, 6 Sep 2019 12:32:12 +0000 (14:32 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Sep 2019 13:07:43 +0000 (15:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/context.c

index f97f0a6127f2543d2a20b0222d182a3fd1e891c2..cbcadcf592d1202bf6735c10845a8a53409f8cf1 100644 (file)
@@ -715,10 +715,11 @@ int fdisk_assign_device_by_fd(struct fdisk_context *cxt, int fd,
 /**
  * fdisk_deassign_device:
  * @cxt: context
- * @nosync: disable fsync()
+ * @nosync: disable sync() after close().
  *
- * Close device and call fsync(). If the @cxt is nested context then the
- * request is redirected to the parent.
+ * Call fsync(), close() and than sync(), but for read-only handler close the
+ * device only. If the @cxt is nested context then the request is redirected to
+ * the parent.
  *
  * Returns: 0 on success, < 0 on error.
  */