Whamcloud - gitweb
LU-540 lloop: fix LLOOP_INFO to return FID
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 27 Jul 2011 05:25:18 +0000 (23:25 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 29 Jul 2011 15:03:28 +0000 (11:03 -0400)
commit90bde110350493b1d07b12f692a829b4d2cab617
treea4751b07aa98545af967173085332a3ed0163f8a
parent770f9c0e7e8eb3dc3a9e531210cbf29008e9a27d
LU-540 lloop: fix LLOOP_INFO to return FID

Instead of returning an inode number to userspace for the LLOOP_INFO
ioctl, instead return a FID value.

This does not pose compatibility problems, because the ioctl() number
was already different between Lustre 1.x and 2.x, and the lctl needed
for using lloop devices is always built with the kernel modules.

Change-Id: Ia3ee6dab830ad65e2a11d9248982c82ce76221f1
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1149
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustre_user.h
lustre/llite/lloop.c
lustre/utils/obd.c