1/* 2 * modified for Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1989, 1993 --- 28 unchanged lines hidden (view full) --- 37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 * SUCH DAMAGE. 43 * 44 * @(#)ufs_lookup.c 8.6 (Berkeley) 4/1/94 |
45 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_lookup.c 111741 2003-03-02 15:50:23Z des $ |
46 */ 47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/namei.h> 51#include <sys/bio.h> 52#include <sys/buf.h> 53#include <sys/mount.h> --- 163 unchanged lines hidden (view full) --- 217 dstdp.d_namlen); 218 219 if (dp->rec_len > 0) { 220 if(dstdp.d_reclen <= uio->uio_resid) { 221 /* advance dp */ 222 dp = (struct ext2_dir_entry_2 *) 223 ((char *)dp + dp->rec_len); 224 error = |
225 uiomove(&dstdp, dstdp.d_reclen, uio); |
226 if (!error) 227 ncookies++; 228 } else 229 break; 230 } else { 231 error = EIO; 232 break; 233 } --- 876 unchanged lines hidden --- |