| OLD | NEW |
| 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 Loading... |
| 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} |
| OLD | NEW |