lkml.org 
[lkml]   [2009]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 19/21] ceph: ioctls
From
Date
Sage Weil <sage@newdream.net> writes:
> +/*
> + * Extract identity, address of the OSD and object storing a given
> + * file offset.
> + */
> +struct ceph_ioctl_dataloc {
> + __u64 file_offset; /* in+out: file offset */
> + __u64 object_offset; /* out: offset in object */
> + __u64 object_no; /* out: object # */
> + __u64 object_size; /* out: object size */
> + char object_name[64]; /* out: object name */
> + __u64 block_offset; /* out: offset in block */
> + __u64 block_size; /* out: block length */
> + __s64 osd; /* out: osd # */
> + struct sockaddr_in osd_addr; /* out: osd address */

You'll have to revise that once you support IPv6. At least extend the structure
better now? (_in is too small for IPv6)

-Andi
--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-10-02 06:21    [from the cache]
©2003-2011 Jasper Spaans