ext2_lookup.c (294504) | ext2_lookup.c (294653) |
---|---|
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 --- 24 unchanged lines hidden (view full) --- 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * @(#)ufs_lookup.c 8.6 (Berkeley) 4/1/94 | 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 --- 24 unchanged lines hidden (view full) --- 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * @(#)ufs_lookup.c 8.6 (Berkeley) 4/1/94 |
41 * $FreeBSD: head/sys/fs/ext2fs/ext2_lookup.c 294504 2016-01-21 14:50:28Z pfg $ | 41 * $FreeBSD: head/sys/fs/ext2fs/ext2_lookup.c 294653 2016-01-24 02:41:49Z pfg $ |
42 */ 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/namei.h> 47#include <sys/bio.h> 48#include <sys/buf.h> 49#include <sys/endian.h> --- 833 unchanged lines hidden (view full) --- 883 else 884 newdir.e2d_type = EXT2_FT_UNKNOWN; 885 bcopy(cnp->cn_nameptr, newdir.e2d_name, (unsigned)cnp->cn_namelen + 1); 886 newentrysize = EXT2_DIR_REC_LEN(newdir.e2d_namlen); 887 888 if (ext2_htree_has_idx(dp)) { 889 error = ext2_htree_add_entry(dvp, &newdir, cnp); 890 if (error) { | 42 */ 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/namei.h> 47#include <sys/bio.h> 48#include <sys/buf.h> 49#include <sys/endian.h> --- 833 unchanged lines hidden (view full) --- 883 else 884 newdir.e2d_type = EXT2_FT_UNKNOWN; 885 bcopy(cnp->cn_nameptr, newdir.e2d_name, (unsigned)cnp->cn_namelen + 1); 886 newentrysize = EXT2_DIR_REC_LEN(newdir.e2d_namlen); 887 888 if (ext2_htree_has_idx(dp)) { 889 error = ext2_htree_add_entry(dvp, &newdir, cnp); 890 if (error) { |
891 dp->i_flag &= ~IN_E4INDEX; | 891 dp->i_flag &= ~IN_E3INDEX; |
892 dp->i_flag |= IN_CHANGE | IN_UPDATE; 893 } 894 return (error); 895 } 896 897 if (EXT2_HAS_COMPAT_FEATURE(ip->i_e2fs, EXT2F_COMPAT_DIRHASHINDEX) && 898 !ext2_htree_has_idx(dp)) { 899 if ((dp->i_size / DIRBLKSIZ) == 1 && --- 337 unchanged lines hidden --- | 892 dp->i_flag |= IN_CHANGE | IN_UPDATE; 893 } 894 return (error); 895 } 896 897 if (EXT2_HAS_COMPAT_FEATURE(ip->i_e2fs, EXT2F_COMPAT_DIRHASHINDEX) && 898 !ext2_htree_has_idx(dp)) { 899 if ((dp->i_size / DIRBLKSIZ) == 1 && --- 337 unchanged lines hidden --- |