Skip to content

Commit

Permalink
mount_target_filesystem: Support NTFS
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed May 8, 2018
1 parent bc37598 commit 6fb1ee1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ init(){

if ! mount_target_filesystem\
"${target_partition}"\
"${target_fs_mountpoint}"\
vfat; then
"${target_fs_mountpoint}"
"${target_filesystem_type}"; then
echo_with_color red 'Error: Unable to mount target filesystem'
exit 1
fi
Expand Down Expand Up @@ -1223,7 +1223,7 @@ mount_source_filesystem(){
# Mount target filesystem to existing path as mountpoint
# target_partition: The partition device file target filesystem resides, for example /dev/sdX1
# target_fs_mountpoint: The existing directory used as the target filesystem's mountpoint, for example /mnt/target_filesystem
# target_fs_type: The filesystem of the target filesystem, this is same as the --types argument of mount(8), currently supports: vfat
# target_fs_type: The filesystem of the target filesystem currently supports: FAT, NTFS
mount_target_filesystem(){
util_check_function_parameters_quantity 3 $#
local target_partition="$1"; shift
Expand All @@ -1244,9 +1244,12 @@ mount_target_filesystem(){

# Determine proper mount options according to filesystem type
case "${target_fs_type}" in
vfat)
FAT)
mount_options='utf8=1'
;;
NTFS)
:
;;
*)
printf_with_color\
red\
Expand Down

0 comments on commit 6fb1ee1

Please sign in to comment.