Deleted Added
full compact
ext2_vfsops.c (158924) ext2_vfsops.c (162647)
1/*-
2 * modified for EXT2FS support in 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, 1991, 1993, 1994

--- 19 unchanged lines hidden (view full) ---

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94
1/*-
2 * modified for EXT2FS support in 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, 1991, 1993, 1994

--- 19 unchanged lines hidden (view full) ---

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94
36 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vfsops.c 158924 2006-05-26 00:32:21Z rodrigc $
36 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vfsops.c 162647 2006-09-26 04:12:49Z tegge $
37 */
38
39/*-
40 * COPYRIGHT.INFO says this has some GPL'd code from ext2_super.c in it
41 *
42 * This program is free software; you can redistribute it and/or modify
43 * it under the terms of the GNU General Public License as published by
44 * the Free Software Foundation; either version 2 of the License.

--- 180 unchanged lines hidden (view full) ---

225"WARNING: R/W mount of %s denied. Filesystem is not clean - run fsck\n",
226 fs->fs_fsmnt);
227 return (EPERM);
228 }
229 }
230 fs->s_es->s_state &= ~EXT2_VALID_FS;
231 ext2_sbupdate(ump, MNT_WAIT);
232 fs->s_rd_only = 0;
37 */
38
39/*-
40 * COPYRIGHT.INFO says this has some GPL'd code from ext2_super.c in it
41 *
42 * This program is free software; you can redistribute it and/or modify
43 * it under the terms of the GNU General Public License as published by
44 * the Free Software Foundation; either version 2 of the License.

--- 180 unchanged lines hidden (view full) ---

225"WARNING: R/W mount of %s denied. Filesystem is not clean - run fsck\n",
226 fs->fs_fsmnt);
227 return (EPERM);
228 }
229 }
230 fs->s_es->s_state &= ~EXT2_VALID_FS;
231 ext2_sbupdate(ump, MNT_WAIT);
232 fs->s_rd_only = 0;
233 MNT_ILOCK(mp);
233 mp->mnt_flag &= ~MNT_RDONLY;
234 mp->mnt_flag &= ~MNT_RDONLY;
235 MNT_IUNLOCK(mp);
234 }
235 if (vfs_flagopt(opts, "export", NULL, 0)) {
236 /* Process export requests in vfs_mount.c. */
237 return (error);
238 }
239 }
240 /*
241 * Not an update, or updating the name: look up the name

--- 436 unchanged lines hidden (view full) ---

678 if (ronly == 0) {
679 fs->s_dirt = 1; /* mark it modified */
680 fs->s_es->s_state &= ~EXT2_VALID_FS; /* set fs invalid */
681 }
682 mp->mnt_data = (qaddr_t)ump;
683 mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
684 mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
685 mp->mnt_maxsymlinklen = EXT2_MAXSYMLINKLEN;
236 }
237 if (vfs_flagopt(opts, "export", NULL, 0)) {
238 /* Process export requests in vfs_mount.c. */
239 return (error);
240 }
241 }
242 /*
243 * Not an update, or updating the name: look up the name

--- 436 unchanged lines hidden (view full) ---

680 if (ronly == 0) {
681 fs->s_dirt = 1; /* mark it modified */
682 fs->s_es->s_state &= ~EXT2_VALID_FS; /* set fs invalid */
683 }
684 mp->mnt_data = (qaddr_t)ump;
685 mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
686 mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
687 mp->mnt_maxsymlinklen = EXT2_MAXSYMLINKLEN;
688 MNT_ILOCK(mp);
686 mp->mnt_flag |= MNT_LOCAL;
689 mp->mnt_flag |= MNT_LOCAL;
690 MNT_IUNLOCK(mp);
687 ump->um_mountp = mp;
688 ump->um_dev = dev;
689 ump->um_devvp = devvp;
690 ump->um_bo = &devvp->v_bufobj;
691 ump->um_cp = cp;
692 /* setting those two parameters allowed us to use
693 ufs_bmap w/o changse !
694 */

--- 71 unchanged lines hidden (view full) ---

766 g_vfs_close(ump->um_cp, td);
767 g_topology_unlock();
768 PICKUP_GIANT();
769 vrele(ump->um_devvp);
770 bsd_free(fs->s_es, M_EXT2MNT);
771 bsd_free(fs, M_EXT2MNT);
772 bsd_free(ump, M_EXT2MNT);
773 mp->mnt_data = (qaddr_t)0;
691 ump->um_mountp = mp;
692 ump->um_dev = dev;
693 ump->um_devvp = devvp;
694 ump->um_bo = &devvp->v_bufobj;
695 ump->um_cp = cp;
696 /* setting those two parameters allowed us to use
697 ufs_bmap w/o changse !
698 */

--- 71 unchanged lines hidden (view full) ---

770 g_vfs_close(ump->um_cp, td);
771 g_topology_unlock();
772 PICKUP_GIANT();
773 vrele(ump->um_devvp);
774 bsd_free(fs->s_es, M_EXT2MNT);
775 bsd_free(fs, M_EXT2MNT);
776 bsd_free(ump, M_EXT2MNT);
777 mp->mnt_data = (qaddr_t)0;
778 MNT_ILOCK(mp);
774 mp->mnt_flag &= ~MNT_LOCAL;
779 mp->mnt_flag &= ~MNT_LOCAL;
780 MNT_IUNLOCK(mp);
775 return (error);
776}
777
778/*
779 * Flush out all the files in a filesystem.
780 */
781static int
782ext2_flushfiles(mp, flags, td)

--- 374 unchanged lines hidden ---
781 return (error);
782}
783
784/*
785 * Flush out all the files in a filesystem.
786 */
787static int
788ext2_flushfiles(mp, flags, td)

--- 374 unchanged lines hidden ---