Skip to contentSkip to conversation

new statx() like interface for libcephfs

DISCUSSION Jeff Layton 3 participants 4 messages Jun 28, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I have a patchset queued up for ceph that adds btime (birthtime) support to it. What was lacking though was a mechanism to get the btime out of the inode.

Rather than cook up a brand new interface just for the btime, I decided to "borrow" the work that David Howells did with the new proposed statx() interface. The pull request to add this to ceph is up here:

     https://github.com/ceph/ceph/pull/9965

Sage has already closed it out which I take to mean that he has pulled the patches into a staging branch for eventual merge.

It occurs to me though that I didn't ask anyone who is working on the samba vfs or ganesha fsal code whether they think this interface is acceptable.

Since Samba and Ganesha are the targeted users of this interface, it'd be good to have developers from both communities take a look and see if there are any problems here.

Does anyone see any issues with the above pull request?

Signature · 6 lines
Jeff Layton <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Is stx_version a generation ID for the inode that can be used for the NFSv4 Change ID? If so, that would be quite useful to us. Otherwise, I'm not sure there's that much in there that's useful beyond what stat already provides, unless I'm missing something.

Quoted 29 lines · Jeff Layton

I have a patchset queued up for ceph that adds btime (birthtime) support to it. What was lacking though was a mechanism to get the btime out of the inode.

Rather than cook up a brand new interface just for the btime, I decided to "borrow" the work that David Howells did with the new proposed statx() interface. The pull request to add this to ceph is up here:

     https://github.com/ceph/ceph/pull/9965

Sage has already closed it out which I take to mean that he has pulled the patches into a staging branch for eventual merge.

It occurs to me though that I didn't ask anyone who is working on the samba vfs or ganesha fsal code whether they think this interface is acceptable.

Since Samba and Ganesha are the targeted users of this interface, it'd be good to have developers from both communities take a look and see if there are any problems here.

Does anyone see any issues with the above pull request? --
Jeff Layton <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 5 lines · Daniel Gryniewicz

Is stx_version a generation ID for the inode that can be used for the NFSv4 Change ID?  If so, that would be quite useful to us.  Otherwise, I'm not sure there's that much in there that's useful beyond what stat already provides, unless I'm missing something.

Yeah, I think that's the idea behind that field in statx calls, but I'll note that I didn't wire that up here. That is the nice thing about the proposed statx API though. We can add stuff like that in a piecemeal fashion, as long as the callers check the stx_mask to make sure the returned values are legit.

I'll look at whether it's possible to wire that up as well if it's helpful for ganesha.

Quoted 31 lines · Jeff Layton
Quoted 30 lines

I have a patchset queued up for ceph that adds btime (birthtime) support to it. What was lacking though was a mechanism to get the btime out of the inode.

Rather than cook up a brand new interface just for the btime, I decided to "borrow" the work that David Howells did with the new proposed statx() interface. The pull request to add this to ceph is up here:

     https://github.com/ceph/ceph/pull/9965

Sage has already closed it out which I take to mean that he has pulled the patches into a staging branch for eventual merge.

It occurs to me though that I didn't ask anyone who is working on the samba vfs or ganesha fsal code whether they think this interface is acceptable.

Since Samba and Ganesha are the targeted users of this interface, it'd be good to have developers from both communities take a look and see if there are any problems here.

Does anyone see any issues with the above pull request? --
Jeff Layton <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Jeff Layton <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAL-2WbF5HAoAvbje8xr91OP5Cd1ye7UF7W+PA01m-V1+O==DjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 2 lines

Is stx_version a generation ID for the inode that can be used for the NFSv4 Change ID? If so, that would be quite useful to us. Otherwise, I'm

not

Quoted 2 lines

sure there's that much in there that's useful beyond what stat already provides, unless I'm missing something.

Even if stx_version isn't available for a change attribute, btime converts to NFS v4 create time.

Frank

Quoted 23 lines · Jeff Layton
Quoted 22 lines

I have a patchset queued up for ceph that adds btime (birthtime) support to it. What was lacking though was a mechanism to get the btime out of the inode.

Rather than cook up a brand new interface just for the btime, I decided to "borrow" the work that David Howells did with the new proposed
statx() interface. The pull request to add this to ceph is up here:

     https://github.com/ceph/ceph/pull/9965

Sage has already closed it out which I take to mean that he has pulled the patches into a staging branch for eventual merge.

It occurs to me though that I didn't ask anyone who is working on the samba vfs or ganesha fsal code whether they think this interface is acceptable.

Since Samba and Ganesha are the targeted users of this interface, it'd be good to have developers from both communities take a look and see if there are any problems here.

Quoted 11 lines
Quoted 7 lines

Does anyone see any issues with the above pull request? --
Jeff Layton <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More

majordomo

Quoted 1 line

info at http://vger.kernel.org/majordomo-info.html

----------------------------------------------------------------------------
--

Quoted 9 lines

Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Nfs-ganesha-devel mailing list Nfs-ganesha-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today.
http://sdm.link/attshape