From: Sam Lang Date: Fri, 28 Dec 2012 17:56:46 +0000 (-0800) Subject: ceph: Check for created flag in response from mds X-Git-Tag: v3.9-rc1~41^2~21^2~59^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8575faa8fa680d59404a4d58d12190667be815;p=pandora-kernel.git ceph: Check for created flag in response from mds The mds now sends back a created inode if the create request performed the create. If the file already existed, no inode is returned in the reply. This allows ceph to set the created flag in atomic_open so that permissions are properly checked in the case that the file wasn't created by the create call to the mds. To ensure compability with previous kernels, a feature for sending back the inode in the create reply was added, so that the mds will only send back the inode if the client indicates it supports the feature. Signed-off-by: Sam Lang Reviewed-by: Sage Weil --- Reading git-diff-tree failed