+ return (AFP_OK);
+}
+
+/* ----------------------- */
+int getfilparams(struct vol *vol,
+ u_int16_t bitmap,
+ char *path, struct dir *dir, struct stat *st,
+ char *buf, int *buflen )
+{
+ struct adouble ad, *adp;
+ struct ofork *of;
+ char *upath;
+ u_int16_t attrbits = 0;
+ int rc;
+#ifdef DEBUG
+ LOG(log_info, logtype_default, "begin getfilparams:");
+#endif /* DEBUG */
+
+ upath = mtoupath(vol, path);
+ if ((of = of_findname(vol, dir, path))) {
+ adp = of->of_ad;
+ attrbits = ((of->of_ad->ad_df.adf_refcount > 0) ? ATTRBIT_DOPEN : 0);
+ attrbits |= ((of->of_ad->ad_hf.adf_refcount > of->of_ad->ad_df.adf_refcount)? ATTRBIT_ROPEN : 0);
+
+ } else {
+ memset(&ad, 0, sizeof(ad));
+ adp = &ad;
+ }