client: rename ceph_statx.h to ceph_ll_client.h

...so we can use it to include other definitions and types that need to
be shared with in-tree code that doesn't want to include libcephfs.h.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
Jeff Layton 2020-04-16 12:01:05 -04:00
parent 79b5882110
commit 4436f27a04
10 changed files with 13 additions and 14 deletions

View File

@ -396,7 +396,7 @@ libcephfs_dev() {
pkgdesc="Ceph distributed file system client library headers"
depends="libcephfs librados-devel"
_pkg $_includedir/cephfs ceph_statx.h libcephfs.h
_pkg $_includedir/cephfs ceph_ll_client.h libcephfs.h
_pkg $_libdir libcephfs.so
}

View File

@ -2181,7 +2181,7 @@ fi
%files -n libcephfs-devel
%dir %{_includedir}/cephfs
%{_includedir}/cephfs/libcephfs.h
%{_includedir}/cephfs/ceph_statx.h
%{_includedir}/cephfs/ceph_ll_client.h
%{_libdir}/libcephfs.so
%files -n python%{python3_pkgversion}-cephfs

View File

@ -1,3 +1,3 @@
usr/include/cephfs/ceph_statx.h
usr/include/cephfs/ceph_ll_client.h
usr/include/cephfs/libcephfs.h
usr/lib/libcephfs.so

View File

@ -96,7 +96,7 @@
#include "include/ceph_assert.h"
#include "include/stat.h"
#include "include/cephfs/ceph_statx.h"
#include "include/cephfs/ceph_ll_client.h"
#if HAVE_GETGROUPLIST
#include <grp.h>

View File

@ -23,7 +23,7 @@
#include "common/cmdparse.h"
#include "common/compiler_extensions.h"
#include "include/common_fwd.h"
#include "include/cephfs/ceph_statx.h"
#include "include/cephfs/ceph_ll_client.h"
#include "include/filepath.h"
#include "include/interval_set.h"
#include "include/lru.h"

View File

@ -36,7 +36,7 @@
#include "common/errno.h"
#include "include/ceph_assert.h"
#include "include/cephfs/ceph_statx.h"
#include "include/cephfs/ceph_ll_client.h"
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_client

View File

@ -33,7 +33,7 @@
#include "ioctl.h"
#include "common/config.h"
#include "include/ceph_assert.h"
#include "include/cephfs/ceph_statx.h"
#include "include/cephfs/ceph_ll_client.h"
#include "fuse_ll.h"
#include <fuse.h>

View File

@ -5,17 +5,14 @@
*
* Copyright (C) Jeff Layton <jlayton@redhat.com>
*
* Heavily borrowed from David Howells' draft statx patchset.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#ifndef CEPH_CEPH_STATX_H
#define CEPH_CEPH_STATX_H
#ifndef CEPH_CEPH_LL_CLIENT_H
#define CEPH_CEPH_LL_CLIENT_H
#include <stdint.h>
#ifdef __cplusplus
@ -23,6 +20,8 @@ extern "C" {
#endif
/*
* Heavily borrowed from David Howells' draft statx patchset.
*
* Since the xstat patches are still a work in progress, we borrow its data
* structures and #defines to implement ceph_getattrx. Once the xstat stuff
* has been merged we should drop this and switch over to using that instead.

View File

@ -27,7 +27,7 @@
#include <stdbool.h>
#include <fcntl.h>
#include "ceph_statx.h"
#include "ceph_ll_client.h"
#ifdef __cplusplus
namespace ceph::common {

View File

@ -106,7 +106,7 @@ cdef extern from "sys/time.h":
long tv_sec
long tv_usec
cdef extern from "cephfs/ceph_statx.h":
cdef extern from "cephfs/ceph_ll_client.h":
cdef struct statx "ceph_statx":
uint32_t stx_mask
uint32_t stx_blksize