Deleted Added
full compact
dos.subr (252077) dos.subr (252721)
1if [ ! "$_MEDIA_DOS_SUBR" ]; then _MEDIA_DOS_SUBR=1
2#
3# Copyright (c) 2012-2013 Devin Teske
4# All Rights Reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

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

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
1if [ ! "$_MEDIA_DOS_SUBR" ]; then _MEDIA_DOS_SUBR=1
2#
3# Copyright (c) 2012-2013 Devin Teske
4# All Rights Reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

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

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/dos.subr 252077 2013-06-21 23:13:55Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/dos.subr 252721 2013-07-04 20:12:12Z dteske $
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." media/dos.subr
34f_include $BSDCFG_SHARE/device.subr
35f_include $BSDCFG_SHARE/dialog.subr

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

120 fi
121 DOS_MOUNTED=1
122 return $SUCCESS
123}
124
125# f_media_get_dos $device $file [$probe_only]
126#
127# Returns data from $file on a mounted DOS partition device. Similar to cat(1).
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." media/dos.subr
34f_include $BSDCFG_SHARE/device.subr
35f_include $BSDCFG_SHARE/dialog.subr

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

120 fi
121 DOS_MOUNTED=1
122 return $SUCCESS
123}
124
125# f_media_get_dos $device $file [$probe_only]
126#
127# Returns data from $file on a mounted DOS partition device. Similar to cat(1).
128# $probe_only is currently unused by this media type.
128# If $probe_only is present and non-NULL, returns success if $file exists.
129#
130f_media_get_dos()
131{
132 local dev="$1" file="$2" probe_only="$3"
133
134 f_dprintf "f_media_get_dos: dev=[%s] file=[%s] probe_only=%s" \
135 "$dev" "$file" "$probe_only"
136
129#
130f_media_get_dos()
131{
132 local dev="$1" file="$2" probe_only="$3"
133
134 f_dprintf "f_media_get_dos: dev=[%s] file=[%s] probe_only=%s" \
135 "$dev" "$file" "$probe_only"
136
137 f_media_generic_get "$MOUNTPOINT" "$file"
137 f_media_generic_get "$MOUNTPOINT" "$file" "$probe_only"
138}
139
140# f_media_shutdown_dos $device
141#
142# Shuts down the DOS partition device using umount(8). Return status should be
143# ignored.
144#
145f_media_shutdown_dos()

--- 19 unchanged lines hidden ---
138}
139
140# f_media_shutdown_dos $device
141#
142# Shuts down the DOS partition device using umount(8). Return status should be
143# ignored.
144#
145f_media_shutdown_dos()

--- 19 unchanged lines hidden ---