socsvn commit: r240301 - soc2012/oleksandr/udf-head/sys/fs/udf2
oleksandr at FreeBSD.org
oleksandr at FreeBSD.org
Sun Aug 12 20:53:20 UTC 2012
Author: oleksandr
Date: Sun Aug 12 20:53:18 2012
New Revision: 240301
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=240301
Log:
fix bug in readdir and add ifdef WRITE_SUPPORT
Modified:
soc2012/oleksandr/udf-head/sys/fs/udf2/udf_vnops.c
Modified: soc2012/oleksandr/udf-head/sys/fs/udf2/udf_vnops.c
==============================================================================
--- soc2012/oleksandr/udf-head/sys/fs/udf2/udf_vnops.c Sun Aug 12 19:58:56 2012 (r240300)
+++ soc2012/oleksandr/udf-head/sys/fs/udf2/udf_vnops.c Sun Aug 12 20:53:18 2012 (r240301)
@@ -273,7 +273,7 @@
return (error);
}
/* --------------------------------------------------------------------- */
-#if 0
+#ifdef WRITE_SUPPORT
int
udf_write(struct vop_write_args *ap)
{
@@ -561,7 +561,7 @@
/* --------------------------------------------------------------------- */
-/* TODO: Needs lots of work */
+
static int
udf_readdir(struct vop_readdir_args /* {
struct vnode *a_vp;
@@ -756,7 +756,7 @@
free(cookies, M_UDFTEMP);
} else {
*ap->a_ncookies = acookies;
- *ap->a_cookies = cookies;
+ *ap->a_cookies = (u_long *) cookies;
}
}
@@ -1531,7 +1531,7 @@
}
/* --------------------------------------------------------------------- */
-#if 0
+#ifdef WRITE_SUPPORT
int
udf_create(void *v)
{
@@ -1986,7 +1986,7 @@
*
* If source is on the path from target to the root, return error.
*/
-#if 0
+#ifdef WRITE_SUPPORT
static int
udf_on_rootpath(struct udf_node *source, struct udf_node *target)
{
More information about the svn-soc-all
mailing list