]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: fix documentation for ceph_seekdir offset 32548/head
authorDavid Disseldorp <ddiss@suse.de>
Wed, 8 Jan 2020 14:02:18 +0000 (15:02 +0100)
committerDavid Disseldorp <ddiss@suse.de>
Wed, 8 Jan 2020 14:02:18 +0000 (15:02 +0100)
The offset should be a value returned by telldir, not seekdir.

Signed-off-by: David Disseldorp <ddiss@suse.de>
src/include/cephfs/libcephfs.h

index 974b59907319ad163fcc7a557d43ccdbf189a7b9..a94d20bc07b7080f663c98dbbef64b4a88c5977f 100644 (file)
@@ -615,7 +615,7 @@ int64_t ceph_telldir(struct ceph_mount_info *cmount, struct ceph_dir_result *dir
  * @param cmount the ceph mount handle to use for performing the seekdir.
  * @param dirp the directory stream pointer to move.
  * @param offset the position to move the directory stream to.  This offset should be
- *        a value returned by seekdir.  Note that this value does not refer to the nth
+ *        a value returned by telldir.  Note that this value does not refer to the nth
  *        entry in a directory, and can not be manipulated with plus or minus.
  */
 void ceph_seekdir(struct ceph_mount_info *cmount, struct ceph_dir_result *dirp, int64_t offset);