Whamcloud - gitweb
LU-11963 osd: Add nonrotational flag to statfs 35/34235/11
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 27 Feb 2019 21:29:59 +0000 (16:29 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Jun 2019 05:27:01 +0000 (05:27 +0000)
commit68635c3d9b3113621b93fd989f1a3f8f064385b9
tree8192391cf22cb4a308da17fc075a60b621b673c0
parent20472b4070495c1bb2796ce2682aefdf2fe8a3f6
LU-11963 osd: Add nonrotational flag to statfs

It is potentially useful for the MDS and userspace to
know whether or not an OST is using non-rotational media.

Add a flag to obd_statfs that reflects this.

Users can override this parameter in proc.

ZFS does not currently make this information available to
Lustre, so default to rotational and allow users to
override.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Iac2b54c5d8cc1eb79cdace764e93578c7b058661
Reviewed-on: https://review.whamcloud.com/34235
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-zfs/osd_handler.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_lproc.c
lustre/ptlrpc/wiretest.c
lustre/utils/lfs.c