Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e98ea
)
- check that fs is version-capable and avoid VBR if not
author
tappro
<tappro>
Wed, 26 Nov 2008 08:05:10 +0000
(08:05 +0000)
committer
tappro
<tappro>
Wed, 26 Nov 2008 08:05:10 +0000
(08:05 +0000)
b:17717
i:adilger,alex
lustre/obdclass/target.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/target.c
b/lustre/obdclass/target.c
index
e3b3df6
..
c723a99
100644
(file)
--- a/
lustre/obdclass/target.c
+++ b/
lustre/obdclass/target.c
@@
-175,3
+175,12
@@
void target_trans_table_update(struct obd_export *exp, __u64 transno)
spin_unlock(&obt->obt_trans_table_lock);
}
EXPORT_SYMBOL(target_trans_table_update);
+
+int target_fs_version_capable(struct obd_device *obd)
+{
+ struct inode * inode = obd->u.obt.obt_rcvd_filp->f_dentry->d_inode;
+ /** check inode has version */
+ return (fsfilt_get_version(obd, inode) != -EOPNOTSUPP);
+}
+EXPORT_SYMBOL(target_fs_version_capable);
+