From: Karel Zak Date: Fri, 6 Sep 2019 12:32:12 +0000 (+0200) Subject: libfdisk: cleanup fdisk_deassign_device() docs X-Git-Tag: v2.35-rc1~227 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4e0b1a6f054e3553772ca65874a6b4b0921d76f;p=thirdparty%2Futil-linux.git libfdisk: cleanup fdisk_deassign_device() docs Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c index f97f0a6127..cbcadcf592 100644 --- a/libfdisk/src/context.c +++ b/libfdisk/src/context.c @@ -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. */