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

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

Issue 2750913003: Add temporary debugging to make_hfs.sh. (Closed)
Patch Set: Add -debug while I'm at it. 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 15 matching lines...) Expand all
26 exit 1 26 exit 1
27 fi 27 fi
28 28
29 if [[ ! $OUT_FILE ]]; then 29 if [[ ! $OUT_FILE ]]; then
30 echo "Need to specify a destination filename." 30 echo "Need to specify a destination filename."
31 exit 1 31 exit 1
32 fi 32 fi
33 33
34 RAMDISK_VOLUME=$(hdiutil attach -nomount ram://$RAMDISK_SIZE) 34 RAMDISK_VOLUME=$(hdiutil attach -nomount ram://$RAMDISK_SIZE)
35 diskutil erasevolume "${FILESYSTEM_TYPE}" "${VOLUME_NAME}" ${RAMDISK_VOLUME} 35 diskutil erasevolume "${FILESYSTEM_TYPE}" "${VOLUME_NAME}" ${RAMDISK_VOLUME}
36 >&2 echo "Temporary debugging for crbug.com/696529."
37 >&2 diskutil list
38 >&2 hdiutil pmap -complete -debug ${RAMDISK_VOLUME}
39 >&2 echo "RAMDISK_VOLUME: " + ${RAMDISK_VOLUME}
36 diskutil mount ${RAMDISK_VOLUME} 40 diskutil mount ${RAMDISK_VOLUME}
37 41
38 pushd "/Volumes/${VOLUME_NAME}" 42 pushd "/Volumes/${VOLUME_NAME}"
39 43
40 touch .metadata_never_index 44 touch .metadata_never_index
41 45
42 mkdir -p first/second/third/fourth/fifth 46 mkdir -p first/second/third/fourth/fifth
43 47
44 pushd first 48 pushd first
45 pushd second 49 pushd second
(...skipping 25 matching lines...) Expand all
71 75
72 echo "This is a test HFS+ filesystem generated by" \ 76 echo "This is a test HFS+ filesystem generated by" \
73 "chrome/test/data/safe_browsing/dmg/make_hfs.sh." > README.txt 77 "chrome/test/data/safe_browsing/dmg/make_hfs.sh." > README.txt
74 78
75 popd # Original PWD 79 popd # Original PWD
76 80
77 # Unmount the volume, copy the raw device to a file, and then destroy it. 81 # Unmount the volume, copy the raw device to a file, and then destroy it.
78 diskutil unmount force ${RAMDISK_VOLUME} 82 diskutil unmount force ${RAMDISK_VOLUME}
79 dd if=${RAMDISK_VOLUME} of="${OUT_FILE}" &> /dev/null 83 dd if=${RAMDISK_VOLUME} of="${OUT_FILE}" &> /dev/null
80 diskutil eject ${RAMDISK_VOLUME} 84 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