From owner-svn-soc-all@FreeBSD.ORG Sun Aug 12 20:53:20 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 9E2C7106564A for ; Sun, 12 Aug 2012 20:53:19 +0000 (UTC) (envelope-from oleksandr@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Sun, 12 Aug 2012 20:53:19 +0000 Date: Sun, 12 Aug 2012 20:53:19 +0000 From: oleksandr@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120812205319.9E2C7106564A@hub.freebsd.org> Cc: Subject: socsvn commit: r240301 - soc2012/oleksandr/udf-head/sys/fs/udf2 X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2012 20:53:20 -0000 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) {