[PATCH 1/2] s3/modules: New vfs module: cephfs
Jeremy Allison
jra at samba.org
Fri Apr 19 12:15:43 MDT 2013
On Tue, Apr 16, 2013 at 05:25:30PM -0500, Sam Lang wrote:
> Implements a vfs module for cephfs, a distributed file system
> with posix semantics, built on the ceph distributed object
> storage layer. The ceph vfs module interfaces to the libcephfs
> userspace API, and is primarily a lightweight wrapper around
> libcephfs, translating error codes and parameters as necessary.
Ok, I installed the ceph development environment on
my Ubuntu 12.10 system and build this. I got the
following errors. Can you fix these (mostly casts
I think, plus you'll need to use smb_strdup()
not strdup()) then resubmit ?
Thanks,
Jeremy.
-------------- next part --------------
../source3/modules/vfs_ceph.c: In function ?cephwrap_disk_free?:
../source3/modules/vfs_ceph.c:167:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?uint64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:167:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 3 has type ?uint64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:167:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 4 has type ?uint64_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_statvfs?:
../source3/modules/vfs_ceph.c:233:3: error: format ?%ld? expects argument of type ?long int?, but argument 3 has type ?__fsblkcnt64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:233:3: error: format ?%ld? expects argument of type ?long int?, but argument 4 has type ?__fsblkcnt64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:233:3: error: format ?%ld? expects argument of type ?long int?, but argument 5 has type ?__fsblkcnt64_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_read?:
../source3/modules/vfs_ceph.c:408:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c:412:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?ssize_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_pread?:
../source3/modules/vfs_ceph.c:421:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c:421:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 6 has type ?off_t? [-Werror=format]
../source3/modules/vfs_ceph.c:424:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?ssize_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_write?:
../source3/modules/vfs_ceph.c:433:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c:437:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?ssize_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_pwrite?:
../source3/modules/vfs_ceph.c:450:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c:450:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 6 has type ?off_t? [-Werror=format]
../source3/modules/vfs_ceph.c:452:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?ssize_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_stat?:
../source3/modules/vfs_ceph.c:549:2: error: implicit declaration of function ?ceph_stat? [-Werror=implicit-function-declaration]
../source3/modules/vfs_ceph.c:554:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?__dev_t? [-Werror=format]
../source3/modules/vfs_ceph.c:554:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 3 has type ?__ino64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:554:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?__nlink_t? [-Werror=format]
../source3/modules/vfs_ceph.c:554:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 8 has type ?__dev_t? [-Werror=format]
../source3/modules/vfs_ceph.c:554:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 9 has type ?__off64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:554:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 11 has type ?__blkcnt64_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_fstat?:
../source3/modules/vfs_ceph.c:577:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?__dev_t? [-Werror=format]
../source3/modules/vfs_ceph.c:577:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 3 has type ?__ino64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:577:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?__nlink_t? [-Werror=format]
../source3/modules/vfs_ceph.c:577:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 8 has type ?__dev_t? [-Werror=format]
../source3/modules/vfs_ceph.c:577:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 9 has type ?__off64_t? [-Werror=format]
../source3/modules/vfs_ceph.c:577:3: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 11 has type ?__blkcnt64_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_fchmod?:
../source3/modules/vfs_ceph.c:676:2: error: implicit declaration of function ?ceph_fchmod? [-Werror=implicit-function-declaration]
../source3/modules/vfs_ceph.c: In function ?cephwrap_fchown?:
../source3/modules/vfs_ceph.c:700:2: error: implicit declaration of function ?ceph_fchown? [-Werror=implicit-function-declaration]
../source3/modules/vfs_ceph.c: In function ?cephwrap_lchown?:
../source3/modules/vfs_ceph.c:715:2: error: implicit declaration of function ?ceph_lchown? [-Werror=implicit-function-declaration]
../source3/modules/vfs_ceph.c: In function ?cephwrap_getwd?:
../source3/modules/vfs_ceph.c:740:9: error: ?__ERROR_DONT_USE_STRDUP_DIRECTLY? undeclared (first use in this function)
../source3/modules/vfs_ceph.c:740:9: note: each undeclared identifier is reported only once for each function it appears in
../source3/modules/vfs_ceph.c: In function ?cephwrap_ftruncate?:
../source3/modules/vfs_ceph.c:831:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 4 has type ?off_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_readlink?:
../source3/modules/vfs_ceph.c:949:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_getxattr?:
../source3/modules/vfs_ceph.c:1055:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 6 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_fgetxattr?:
../source3/modules/vfs_ceph.c:1067:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 6 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_listxattr?:
../source3/modules/vfs_ceph.c:1079:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_llistxattr?:
../source3/modules/vfs_ceph.c:1091:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_flistxattr?:
../source3/modules/vfs_ceph.c:1103:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 5 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c:1105:2: warning: too many arguments for format [-Wformat-extra-args]
../source3/modules/vfs_ceph.c: In function ?cephwrap_setxattr?:
../source3/modules/vfs_ceph.c:1131:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 6 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: In function ?cephwrap_fsetxattr?:
../source3/modules/vfs_ceph.c:1139:2: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 6 has type ?size_t? [-Werror=format]
../source3/modules/vfs_ceph.c: At top level:
../source3/modules/vfs_ceph.c:1089:16: warning: ?cephwrap_llistxattr? defined but not used [-Wunused-function]
../source3/modules/vfs_ceph.c: In function ?cephwrap_getwd?:
../source3/modules/vfs_ceph.c:741:1: warning: control reaches end of non-void function [-Wreturn-type]
cc1: some warnings being treated as errors
Waf: Leaving directory `/home/jeremy/src/samba/git/master/bin'
Build failed: -> task failed (err #1):
{task: cc vfs_ceph.c -> vfs_ceph_86.o}
make: *** [all] Error 1
More information about the samba-technical
mailing list