otherwise we can get ENOSP while fs is not full.
b=13976
i=shadow
i=johann
Details : block usage reported by 'lfs quota' does not take into account
files that have been written with O_DIRECT.
+Severity : normal
+Frequency : always
+Bugzilla : 13976
+Description: touch file failed when fs is not full
+Details : OST in recovery should not be discarded by MDS in alloc_qos(),
+ otherwise we can get ENOSP while fs is not full.
+
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
if (OBD_FAIL_CHECK(OBD_FAIL_MDS_OSC_PRECREATE) && i == 0)
continue;
- if (obd_precreate(lov->lov_tgts[i]->ltd_exp, 1) >= 2)
+ if (obd_precreate(lov->lov_tgts[i]->ltd_exp, 1) > 2)
continue;
lov->lov_tgts[i]->ltd_qos.ltq_usable = 1;