Thanks Zheng, I should have checked that.
Sean, from the commit:
When rbytes mount option is enabled, directory size is recursive size. Recursive size is not updated instantly. This can cause directory size to change between successive stat(1)
On Mon, Jul 18, 2016 at 2:49 PM, Sean Redmond <sean.redmond1@xxxxxxxxx> wrote:
Hi,Is this disabled because its not a stable feature or just user preference?ThanksOn Mon, Jul 18, 2016 at 2:37 PM, Yan, Zheng <ukernel@xxxxxxxxx> wrote:There is rbytes mount option. It's not enabled by default since 4.6 kernel.On Mon, Jul 18, 2016 at 9:00 PM, David <dclistslinux@xxxxxxxxx> wrote:
> Hi all
>
> Recursive statistics on directories are no longer showing on an ls -l output
> but getfattr is accurate:
>
> # ls -l
> total 0
> drwxr-xr-x 1 root root 3 Jul 18 12:42 dir1
> drwxr-xr-x 1 root root 0 Jul 18 12:42 dir2
>
> ]# getfattr -d -m ceph.dir.* dir1
> # file: dir1
> ceph.dir.entries="3"
> ceph.dir.files="3"
> ceph.dir.rbytes="27917283328"
> ceph.dir.rctime="1468842139.09794440000"
> ceph.dir.rentries="4"
> ceph.dir.rfiles="3"
> ceph.dir.rsubdirs="1"
> ceph.dir.subdirs="0"
>
> I've potentially done something silly but I don't recall changing anything.
> When I last checked this a few weeks back I'm pretty sure I was getting the
> correct rbytes on the directory listing. Remounting makes no difference.
>
> Does anyone know what's going on?
>
> Client details:
>
> CentOS Linux release 7.2.1511
> 4.6.1-1.el7.elrepo.x86_64
> Cephfs mount options rw,relatime,name=admin,secret=<hidden>,acl 0 0
>
> Cheers,
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com