Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: chrome/test/data/safe_browsing/dmg/make_hfs.sh

Issue 2747083002: In make_hfs.sh, use `diskutil unmount force` instead of just unmount. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script is used to generate an HFS file system with several types of 7 # This script is used to generate an HFS file system with several types of
8 # files of different sizes. 8 # files of different sizes.
9 9
10 set -eu 10 set -eu
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ln "second/${UNICODE_FILENAME}" unicode_name 67 ln "second/${UNICODE_FILENAME}" unicode_name
68 68
69 popd # volume root 69 popd # volume root
70 70
71 echo "This is a test HFS+ filesystem generated by" \ 71 echo "This is a test HFS+ filesystem generated by" \
72 "chrome/test/data/safe_browsing/dmg/make_hfs.sh." > README.txt 72 "chrome/test/data/safe_browsing/dmg/make_hfs.sh." > README.txt
73 73
74 popd # Original PWD 74 popd # Original PWD
75 75
76 # Unmount the volume, copy the raw device to a file, and then destroy it. 76 # Unmount the volume, copy the raw device to a file, and then destroy it.
77 diskutil unmount ${RAMDISK_VOLUME} 77 diskutil unmount force ${RAMDISK_VOLUME}
78 dd if=${RAMDISK_VOLUME} of="${OUT_FILE}" &> /dev/null 78 dd if=${RAMDISK_VOLUME} of="${OUT_FILE}" &> /dev/null
79 diskutil eject ${RAMDISK_VOLUME} 79 diskutil eject ${RAMDISK_VOLUME}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698