mount_udf.c (101829) | mount_udf.c (102231) |
---|---|
1/* 2 * Copyright (c) 1992, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2002 Scott Long 5 * 6 * This code is derived from software contributed to Berkeley 7 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension 8 * Support code is derived from software contributed to Berkeley --- 22 unchanged lines hidden (view full) --- 31 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * | 1/* 2 * Copyright (c) 1992, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2002 Scott Long 5 * 6 * This code is derived from software contributed to Berkeley 7 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension 8 * Support code is derived from software contributed to Berkeley --- 22 unchanged lines hidden (view full) --- 31 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * |
39 * $FreeBSD: head/sbin/mount_udf/mount_udf.c 101829 2002-08-13 16:07:39Z mux $ | 39 * $FreeBSD: head/sbin/mount_udf/mount_udf.c 102231 2002-08-21 18:11:48Z trhodes $ |
40 */ 41 42/* 43 * This is just a rip-off of mount_iso9660.c. It's been vastly simplified 44 * because UDF doesn't take any options at this time. 45 */ 46 47#include <sys/cdio.h> --- 53 unchanged lines hidden (view full) --- 101 /* 102 * Resolve the mountpoint with realpath(3) and remove unnecessary 103 * slashes from the devicename if there are any. 104 */ 105 (void)checkpath(dir, mntpath); 106 (void)rmslashes(dev, dev); 107 108 /* | 40 */ 41 42/* 43 * This is just a rip-off of mount_iso9660.c. It's been vastly simplified 44 * because UDF doesn't take any options at this time. 45 */ 46 47#include <sys/cdio.h> --- 53 unchanged lines hidden (view full) --- 101 /* 102 * Resolve the mountpoint with realpath(3) and remove unnecessary 103 * slashes from the devicename if there are any. 104 */ 105 (void)checkpath(dir, mntpath); 106 (void)rmslashes(dev, dev); 107 108 /* |
109 * UDF filesystems are not writeable. | 109 * UDF file systems are not writeable. |
110 */ 111 mntflags |= MNT_RDONLY; 112 113 iov[0].iov_base = "fstype"; 114 iov[0].iov_len = sizeof("fstype"); 115 iov[1].iov_base = "udf"; 116 iov[1].iov_len = strlen(iov[1].iov_base) + 1; 117 iov[2].iov_base = "fspath"; --- 19 unchanged lines hidden --- | 110 */ 111 mntflags |= MNT_RDONLY; 112 113 iov[0].iov_base = "fstype"; 114 iov[0].iov_len = sizeof("fstype"); 115 iov[1].iov_base = "udf"; 116 iov[1].iov_len = strlen(iov[1].iov_base) + 1; 117 iov[2].iov_base = "fspath"; --- 19 unchanged lines hidden --- |