Overview
| Comment: | Added start of CPIO mode for appfs-mkfs | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Files: | files | file ages | folders | 
| SHA1: | 2e9fc0f81cede2026bd701f725c744fa | 
| User & Date: | rkeene on 2014-11-11 17:18:07 | 
| Other Links: | manifest | tags | 
Context
| 2014-11-11 | ||
| 17:43 | Added support for hot-restart of AppFSd on SIGUP check-in: b6ea13d9c3 user: rkeene tags: trunk | |
| 17:18 | Added start of CPIO mode for appfs-mkfs check-in: 2e9fc0f81c user: rkeene tags: trunk | |
| 17:17 | Made manifest checking more stringent check-in: cd9fca5677 user: rkeene tags: trunk | |
Changes
Modified appfs-mkfs from [09f445e94a] to [7f99548475].
| 1 2 | #! /usr/bin/env bash | > > > > > > > | > | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 
#! /usr/bin/env bash
if [ "$1" == '--cpio' ]; then
	mode='file'
	pkgfile="$1"
else
	mode='dir'
	pkgsdir="$1"
fi
appfsdir="$2"
if [ -z "${pkgsdir}" -a -z "${pkgfile}" ] || [ -z "${appfsdir}" ]; then
	echo 'Usage: appfs-mk {--cpio <pkgfile>|<pkgsdir>} <appfsdir>' >&2
	exit 1
fi
appfsdir="$(cd "${appfsdir}" && pwd)"
if [ -z "${appfsdir}" ]; then
	echo "Unable to find appfs directory." >&2
 | 
| ︙ | ︙ | |||
| 83 84 85 86 87 88 89 | 
			echo "${type},${stat_data},${filename}"
		else
			echo "${type},${stat_data},${extra_data},${filename}"
		fi
	done
}
 | > > | > > > > > > | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | 
			echo "${type},${stat_data},${filename}"
		else
			echo "${type},${stat_data},${extra_data},${filename}"
		fi
	done
}
case "${mode}" in
	dir)
		cd "${pkgsdir}" || exit 1
		;;
	file)
		echo 'Unsupported' >&2
		exit 1
		;;
esac
packagelistfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
for package in *; do
	(
		cd "${package}" || exit 1
		for os_cpuArch in *; do
 | 
| ︙ | ︙ |