Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7712567
test_afsegment.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
625 B
Referenced Files
None
Subscribers
None
test_afsegment.sh
View Options
#!/bin/sh
# Test the afsegment command
# This file is a work of a US government employee and as such is in the Public domain.
# Simson L. Garfinkel, March 12, 2012
export PATH=$srcdir:../tools:../../tools:.:$PATH
BLANK_BASE=`mktemp -t blankXXXXX`
BLANK_AFF=$BLANK_BASE.aff
unset AFFLIB_PASSPHRASE
echo === Putting a new metadata segment into blank.aff ===
/bin/rm -f $BLANK_AFF
affcopy /dev/null $BLANK_AFF
affsegment -ssegname=testseg1 $BLANK_AFF
if [ x"testseg1" = x`affsegment -p segname $BLANK_AFF` ] ; then
echo affsegment worked!
else
echo affsegment does not work properly
exit 1
fi
/bin/rm -f $BLANK_AFF
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Nov 21, 5:05 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1360967
Default Alt Text
test_afsegment.sh (625 B)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment