View | Details | Raw Unified | Return to bug 150858
Collapse All | Expand All

(-)/sys/geom/label/g_label_ufs.c (-2 / +2 lines)
Lines 83-92 Link Here
83
			continue;
83
			continue;
84
		/* Check for magic and make sure things are the right size */
84
		/* Check for magic and make sure things are the right size */
85
		if (fs->fs_magic == FS_UFS1_MAGIC && fs->fs_fsize > 0 &&
85
		if (fs->fs_magic == FS_UFS1_MAGIC && fs->fs_fsize > 0 &&
86
		    pp->mediasize / fs->fs_fsize == fs->fs_old_size) {
86
		    pp->mediasize / fs->fs_fsize >= fs->fs_old_size) {
87
		    	/* Valid UFS1. */
87
		    	/* Valid UFS1. */
88
		} else if (fs->fs_magic == FS_UFS2_MAGIC && fs->fs_fsize > 0 &&
88
		} else if (fs->fs_magic == FS_UFS2_MAGIC && fs->fs_fsize > 0 &&
89
		    pp->mediasize / fs->fs_fsize == fs->fs_size) {
89
		    pp->mediasize / fs->fs_fsize >= fs->fs_size) {
90
		    	/* Valid UFS2. */
90
		    	/* Valid UFS2. */
91
		} else {
91
		} else {
92
			g_free(fs);
92
			g_free(fs);

Return to bug 150858