Added initial unfs3 sources for version 0.9.22+dfsg-1maemo2
[unfs3] / unfs3 / attr.h
diff --git a/unfs3/attr.h b/unfs3/attr.h
new file mode 100644 (file)
index 0000000..4b2b0bc
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * UNFS3 attribute handling
+ * (C) 2004, Pascal Schmidt
+ * see file LICENSE for license details
+ */
+
+#ifndef NFS_ATTR_H
+#define NFS_ATTR_H
+
+nfsstat3 is_reg(void);
+
+mode_t type_to_mode(ftype3 ftype);
+
+post_op_attr get_post_attr(const char *path, nfs_fh3 fh, struct svc_req *req);
+post_op_attr get_post_stat(const char *path, struct svc_req *req);
+post_op_attr get_post_cached(struct svc_req *req);
+post_op_attr get_post_buf(backend_statstruct buf, struct svc_req *req);
+pre_op_attr  get_pre_cached(void);
+
+nfsstat3 set_attr(const char *path, nfs_fh3 fh, sattr3 sattr);
+
+mode_t create_mode(sattr3 sattr);
+
+nfsstat3 atomic_attr(sattr3 sattr);
+
+#endif