Bug 1359408 - [RGW:NFS]:- stat output for the "size" and "blocks" always shown as 0 for rgw buckets (directories) from nfs mount point
Summary: [RGW:NFS]:- stat output for the "size" and "blocks" always shown as 0 for rgw...
Status: ON_QA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RGW
Version: 2.0
Hardware: x86_64
OS: Unspecified
unspecified
low
Target Milestone: rc
: 4.0
Assignee: Matt Benjamin (redhat)
QA Contact: ceph-qe-bugs
Bara Ancincova
URL:
Whiteboard:
Keywords:
Depends On:
Blocks: 1322504 1383917 1412948 1494421
TreeView+ depends on / blocked
 
Reported: 2016-07-23 20:04 UTC by shylesh
Modified: 2019-06-09 02:26 UTC (History)
10 users (show)

(edit)
.NFS Ganesha does not show bucket size or number of blocks

NFS Ganesha, the NFS interface of the Ceph Object Gateway, lists buckets as directories. However, the interface always shows that the directory size and the number of blocks is `0`, even if some data is written to the buckets.
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)

Description shylesh 2016-07-23 20:04:59 UTC
Below listed are rge buckets shown as directories on nfs mount point.

stat always show size and blocks as 0 though it has data 




  File: ‘missed-hellonew-another-newad-bucket-creation’
  Size: 0               Blocks: 0          IO Block: 1048576 directory
Device: 27h/39d Inode: 7556023705472190679  Links: 3
Access: (0777/drwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:nfs_t:s0
Access: 1970-01-01 00:00:00.000000000 +0000
Modify: 1970-01-01 00:00:00.000000000 +0000
Change: 1970-01-01 00:00:00.000000000 +0000
 Birth: -
  File: ‘nfsbucket’
  Size: 0               Blocks: 0          IO Block: 1048576 directory
Device: 27h/39d Inode: 8564301539577355726  Links: 3
Access: (0777/drwxrwxrwx)  Uid: (4294967294/ UNKNOWN)   Gid: (4294967294/ UNKNOWN)
Context: system_u:object_r:nfs_t:s0
Access: 1970-01-22 02:03:28.000000000 +0000
Modify: 2016-07-23 13:11:23.000000000 +0000
Change: 2016-07-23 13:11:23.000000000 +0000
 Birth: -
  File: ‘test’
  Size: 0               Blocks: 0          IO Block: 1048576 directory
Device: 27h/39d Inode: 16759487093327469849  Links: 3
Access: (0755/drwxr-xr-x)  Uid: (4294967294/ UNKNOWN)   Gid: (4294967294/ UNKNOWN)
Context: system_u:object_r:nfs_t:s0
Access: 2016-07-23 19:55:45.000000000 +0000
Modify: 2016-07-23 19:55:45.000000000 +0000
Change: 2016-07-23 19:55:45.000000000 +0000
 Birth: -

Comment 2 Matt Benjamin (redhat) 2016-07-25 15:29:16 UTC
The RGW NFS implementation currently does not make any attempt to map bucket loading to directory size.

The implementation does not attempt to calculate or estimate link counts for ordinary directories, either.

Either of these might have updated behavior in 2.1, but may always have divergent behavior from ordinary NFS.  RGW NFS is not expected to have fully consistent NFS semantics.  We are still exploring what semantics best fit the needs of customers for NFS-S3 integration.


Note You need to log in before you can comment on or make changes to this bug.