echo XXX > "$file"
fid=$($LFS path2fid "$file")
- expect1 "$fid" lipe_find3_facet mds1
- expect1 "$fid" lipe_find3_facet ost1
+ expect1 "$fid" lipe_find3_facet mds1 -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -print-file-fid
}
run_test 100 "lipe_find3 finds a file by MDT and OST"
fid=$($LFS path2fid "$file")
chmod 0666 "$file"
- expect1 "$fid" lipe_find3_facet mds1 -perm 0666
- expect1 "$fid" lipe_find3_facet mds1 -perm -0666
- expect1 "$fid" lipe_find3_facet mds1 -perm -0600
- expect1 "$fid" lipe_find3_facet mds1 -perm -0060
- expect1 "$fid" lipe_find3_facet mds1 -perm -0400
- expect1 "$fid" lipe_find3_facet mds1 -perm /0777
- expect1 "$fid" lipe_find3_facet mds1 -perm /0477
+ expect1 "$fid" lipe_find3_facet mds1 -perm 0666 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -0666 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -0600 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -0060 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -0400 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm /0777 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm /0477 -print-file-fid
expect_empty lipe_find3_facet mds1 -perm 0777
expect_empty lipe_find3_facet mds1 -perm 0667
expect_empty lipe_find3_facet mds1 -perm /0100
expect_empty lipe_find3_facet mds1 -perm /0111
- expect1 "$fid" lipe_find3_facet mds1 -perm ugo=rw
- expect1 "$fid" lipe_find3_facet mds1 -perm -ugo=rw
- expect1 "$fid" lipe_find3_facet mds1 -perm -ug=rw
- expect1 "$fid" lipe_find3_facet mds1 -perm -u=rw
- expect1 "$fid" lipe_find3_facet mds1 -perm -ugo=r
- expect1 "$fid" lipe_find3_facet mds1 -perm -ugo=w
+ expect1 "$fid" lipe_find3_facet mds1 -perm ugo=rw -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -ugo=rw -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -ug=rw -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -u=rw -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -ugo=r -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -ugo=w -print-file-fid
expect_empty lipe_find3_facet mds1 -perm ugo=rwx
expect_empty lipe_find3_facet mds1 -perm ug=wx,o=rwx
expect_empty lipe_find3_facet mds1 -perm ugo=rwx
chmod 0001 "$file"
- expect1 "$fid" lipe_find3_facet mds1 -perm 0001
- expect1 "$fid" lipe_find3_facet mds1 -perm o=x
- expect1 "$fid" lipe_find3_facet mds1 -perm -o=x
- expect1 "$fid" lipe_find3_facet mds1 -perm /a=x
+ expect1 "$fid" lipe_find3_facet mds1 -perm 0001 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm o=x -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm -o=x -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm /a=x -print-file-fid
expect_empty lipe_find3_facet mds1 -perm 0
expect_empty lipe_find3_facet mds1 -perm 0000
expect_empty lipe_find3_facet mds1 -perm u=x
expect_empty lipe_find3_facet mds1 -perm ugo=
chmod 0000 "$file"
- expect1 "$fid" lipe_find3_facet mds1 -perm 0000
- expect1 "$fid" lipe_find3_facet mds1 -perm ugo=
+ expect1 "$fid" lipe_find3_facet mds1 -perm 0000 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -perm ugo= -print-file-fid
expect_empty lipe_find3_facet mds1 -perm -o=x
expect_empty lipe_find3_facet mds1 -perm /a=x
sync
id=$(stat --format=%u $file) # uid
- expect1 "$fid" lipe_find3_facet mds1 -user "$id"
- expect1 "$fid" lipe_find3_facet ost1 -user "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -user "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -user "$id" -print-file-fid
for id in "${IDS[@]}"; do
chown $id $file || error "cannot set UID to '$id'"
wait_delete_completed
- expect1 "$fid" lipe_find3_facet mds1 -user "$id"
- expect1 "$fid" lipe_find3_facet ost1 -user "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -user "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -user "$id" -print-file-fid
- expect1 "$fid" lipe_find3_facet mds1 -uid "$id"
- expect1 "$fid" lipe_find3_facet ost1 -uid "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -uid "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -uid "$id" -print-file-fid
done
user=sanityusr
chown $user $file || error "cannot set user to '$user'"
wait_delete_completed
- expect1 "$fid" lipe_find3_facet mds1 -user "$user"
- expect1 "$fid" lipe_find3_facet ost1 -user "$user"
+ expect1 "$fid" lipe_find3_facet mds1 -user "$user" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -user "$user" -print-file-fid
id=$(id -u "$user")
- expect1 "$fid" lipe_find3_facet mds1 -uid "$id"
- expect1 "$fid" lipe_find3_facet ost1 -uid "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -uid "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -uid "$id" -print-file-fid
expect_error lipe_find3_facet mds1 -user
expect_error lipe_find3_facet mds1 -user ''
sync
id=$(stat --format=%g $file) # gid
- expect1 "$fid" lipe_find3_facet mds1 -group "$id"
- expect1 "$fid" lipe_find3_facet ost1 -group "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -group "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -group "$id" -print-file-fid
for id in "${IDS[@]}"; do
chown :$id $file || error "cannot set GID to '$id'"
wait_delete_completed
- expect1 "$fid" lipe_find3_facet mds1 -group "$id"
- expect1 "$fid" lipe_find3_facet ost1 -group "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -group "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -group "$id" -print-file-fid
- expect1 "$fid" lipe_find3_facet mds1 -gid "$id"
- expect1 "$fid" lipe_find3_facet ost1 -gid "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -gid "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -gid "$id" -print-file-fid
done
group=sanityusr
chown :$group $file || error "cannot set group to '$group'"
wait_delete_completed
- expect1 "$fid" lipe_find3_facet mds1 -group "$group"
- expect1 "$fid" lipe_find3_facet ost1 -group "$group"
+ expect1 "$fid" lipe_find3_facet mds1 -group "$group" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -group "$group" -print-file-fid
id=$(id -u "$group")
- expect1 "$fid" lipe_find3_facet mds1 -gid "$id"
- expect1 "$fid" lipe_find3_facet ost1 -gid "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -gid "$id" -print-file-fid
+ expect1 "$fid" lipe_find3_facet ost1 -gid "$id" -print-file-fid
expect_error lipe_find3_facet mds1 -group
expect_error lipe_find3_facet mds1 -group ''
# XXX find uses 512 byte default unity for size
- expect1 "$fid" lipe_find3_facet mds1 -size 0
- expect1 "$fid" lipe_find3_facet mds1 -size 0b
- expect1 "$fid" lipe_find3_facet mds1 -size 0c
- expect1 "$fid" lipe_find3_facet mds1 -size 0k
- expect1 "$fid" lipe_find3_facet mds1 -size 0M
- expect1 "$fid" lipe_find3_facet mds1 -size 0G
+ expect1 "$fid" lipe_find3_facet mds1 -size 0 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size 0b -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size 0c -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size 0k -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size 0M -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size 0G -print-file-fid
expect_empty lipe_find3_facet mds1 -size +0
expect_empty lipe_find3_facet mds1 -size +0b
expect_empty lipe_find3_facet mds1 -size -0M
expect_empty lipe_find3_facet mds1 -size -0G
- expect1 "$fid" lipe_find3_facet mds1 -size -1b
- expect1 "$fid" lipe_find3_facet mds1 -size -1k
- expect1 "$fid" lipe_find3_facet mds1 -size -1M
- expect1 "$fid" lipe_find3_facet mds1 -size -1G
+ expect1 "$fid" lipe_find3_facet mds1 -size -1b -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size -1k -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size -1M -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size -1G -print-file-fid
truncate "$file" 512
- expect1 "$fid" lipe_find3_facet mds1 -size 1b
+ expect1 "$fid" lipe_find3_facet mds1 -size 1b -print-file-fid
# Match finds quirky +/- rounding blah blah.
truncate "$file" 1023
expect_empty lipe_find3_facet mds1 -size -1k
- expect1 "$fid" lipe_find3_facet mds1 -size 1k
+ expect1 "$fid" lipe_find3_facet mds1 -size 1k -print-file-fid
expect_empty lipe_find3_facet mds1 -size +1k
truncate "$file" 1024
expect_empty lipe_find3_facet mds1 -size -1k
- expect1 "$fid" lipe_find3_facet mds1 -size 1k
+ expect1 "$fid" lipe_find3_facet mds1 -size 1k -print-file-fid
expect_empty lipe_find3_facet mds1 -size +1k
truncate "$file" 1025
expect_empty lipe_find3_facet mds1 -size 1k
- expect1 "$fid" lipe_find3_facet mds1 -size +1k
- expect1 "$fid" lipe_find3_facet mds1 -size 2k
+ expect1 "$fid" lipe_find3_facet mds1 -size +1k -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -size 2k -print-file-fid
expect_empty lipe_find3_facet mds1 -size -2k
expect_empty lipe_find3_facet mds1 -size +2k
truncate "$file" 1048576
- expect1 "$fid" lipe_find3_facet mds1 -size 1M
+ expect1 "$fid" lipe_find3_facet mds1 -size 1M -print-file-fid
truncate "$file" 1073741824
- expect1 "$fid" lipe_find3_facet mds1 -size 1G
+ expect1 "$fid" lipe_find3_facet mds1 -size 1G -print-file-fid
for size in "${SIZES[@]}"; do
$TRUNCATE $file $size
- expect1 "$fid" lipe_find3_facet mds1 -size ${size}c
+ expect1 "$fid" lipe_find3_facet mds1 -size ${size}c -print-file-fid
done
expect_error lipe_find3_facet mds1 -size
fid=$($LFS path2fid "$file")
expect_empty lipe_find3_facet mds1 -links 0
- expect1 "$fid" lipe_find3_facet mds1 -links +0
- expect1 "$fid" lipe_find3_facet mds1 -links 1
- expect1 "$fid" lipe_find3_facet mds1 -links -2
+ expect1 "$fid" lipe_find3_facet mds1 -links +0 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -links 1 -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -links -2 -print-file-fid
ln $file $file-2
expect_empty lipe_find3_facet mds1 -links 1
- expect1 "$fid" lipe_find3_facet mds1 -links 2
+ expect1 "$fid" lipe_find3_facet mds1 -links 2 -print-file-fid
ln $file $file-3
expect_empty lipe_find3_facet mds1 -links 2
- expect1 "$fid" lipe_find3_facet mds1 -links 3
+ expect1 "$fid" lipe_find3_facet mds1 -links 3 -print-file-fid
expect_error lipe_find3_facet mds1 -links
expect_error lipe_find3_facet mds1 -links ''
fid=$($LFS path2fid "$file")
id=$($LFS project "$file" | awk '{ print $1 }')
- expect1 "$fid" lipe_find3_facet mds1 -projid "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -projid "$id" -print-file-fid
for id in "${IDS[@]}"; do
[[ $id =~ ^[0-9]+$ ]] || continue # exclude sanityusr
$LFS project -p "$id" "$file" || error "cannot set projid to '$id'"
- expect1 "$fid" lipe_find3_facet mds1 -projid "$id"
+ expect1 "$fid" lipe_find3_facet mds1 -projid "$id" -print-file-fid
done
expect_error lipe_find3_facet mds1 -projid
init_lipe_find3_env "$file"
fid=$($LFS path2fid "$file")
- expect1 "$fid" lipe_find3_facet mds1 -type f
- expect1 "$fid" lipe_find3_facet mds1 -type f,b
- expect1 "$fid" lipe_find3_facet mds1 -type f,b,d
- expect1 "$fid" lipe_find3_facet mds1 -type b,c,d,p,f,l,s
- expect1 "$fid" lipe_find3_facet mds1 -not -type d
- expect1 "$fid" lipe_find3_facet mds1 -not -type b,c,d,p,l,s
+ expect1 "$fid" lipe_find3_facet mds1 -type f -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -type f,b -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -type f,b,d -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -type b,c,d,p,f,l,s -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -not -type d -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -not -type b,c,d,p,l,s -print-file-fid
expect_empty lipe_find3_facet mds1 -type d
expect_empty lipe_find3_facet mds1 -type b,c,d,p,l,s
# -name '' fails with "lipe_find3: FATAL: at argument 2:
# missing argument to '-name'". find is OK with -name ''.
- expect1 "$fid" lipe_find3_facet mds1 -name "$tfile"
- expect1 "$fid" lipe_find3_facet mds1 -name "$tfile*"
- expect1 "$fid" lipe_find3_facet mds1 -name "*$tfile"
- expect1 "$fid" lipe_find3_facet mds1 -name "$tfile*"
+ expect1 "$fid" lipe_find3_facet mds1 -name "$tfile" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "$tfile*" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "*$tfile" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "$tfile*" -print-file-fid
expect_empty lipe_find3_facet mds1 -name "dagobert.txt"
mv "$file" "$MOUNT/zalf.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "zalf.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "*.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "zalf.?"
- expect1 "$fid" lipe_find3_facet mds1 -name "[yz]alf.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "[yz]*.x"
+ expect1 "$fid" lipe_find3_facet mds1 -name "zalf.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "*.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "zalf.?" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "[yz]alf.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "[yz]*.x" -print-file-fid
expect_empty lipe_find3_facet mds1 -name "dagobert.txt"
- expect1 "$fid" lipe_find3_facet mds1 -iname "zalf.x"
- expect1 "$fid" lipe_find3_facet mds1 -iname "*.x"
- expect1 "$fid" lipe_find3_facet mds1 -iname "zalf.?"
- expect1 "$fid" lipe_find3_facet mds1 -iname "[yz]alf.x"
- expect1 "$fid" lipe_find3_facet mds1 -iname "[yz]*.x"
+ expect1 "$fid" lipe_find3_facet mds1 -iname "zalf.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "*.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "zalf.?" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "[yz]alf.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "[yz]*.x" -print-file-fid
expect_empty lipe_find3_facet mds1 -iname "dagobert.txt"
- expect1 "$fid" lipe_find3_facet mds1 -iname "ZALF.X"
- expect1 "$fid" lipe_find3_facet mds1 -iname "Zalf.x"
- expect1 "$fid" lipe_find3_facet mds1 -iname "*.x"
- expect1 "$fid" lipe_find3_facet mds1 -iname "ZALF.?"
- expect1 "$fid" lipe_find3_facet mds1 -iname "[yz]ALF.x"
- expect1 "$fid" lipe_find3_facet mds1 -iname "[YZ]*.X"
+ expect1 "$fid" lipe_find3_facet mds1 -iname "ZALF.X" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "Zalf.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "*.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "ZALF.?" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "[yz]ALF.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "[YZ]*.X" -print-file-fid
expect_empty lipe_find3_facet mds1 -iname "dagobert.txt"
expect_empty lipe_find3_facet mds1 -iname "DAGOBERT.TXT"
ln "$MOUNT/zalf.x" "$MOUNT/schmerp.out"
- expect1 "$fid" lipe_find3_facet mds1 -name "*.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "zalf.?"
- expect1 "$fid" lipe_find3_facet mds1 -name "[yz]alf.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "[yz]*.x"
- expect1 "$fid" lipe_find3_facet mds1 -name "schmerp.out"
- expect1 "$fid" lipe_find3_facet mds1 -iname "SCHMERP.out"
- expect1 "$fid" lipe_find3_facet mds1 -iname "SCHMERP.OUT"
+ expect1 "$fid" lipe_find3_facet mds1 -name "*.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "zalf.?" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "[yz]alf.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "[yz]*.x" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -name "schmerp.out" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "SCHMERP.out" -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 -iname "SCHMERP.OUT" -print-file-fid
expect_error lipe_find3_facet mds1 -name
}
echo XXX > "$file"
fid=$($LFS path2fid "$file")
- expect1 "$fid" lipe_find3_facet mds1 -pool "$pool"
+ expect1 "$fid" lipe_find3_facet mds1 -pool "$pool" -print-file-fid
expect_empty lipe_find3_facet mds1 -pool ""
expect_empty lipe_find3_facet mds1 -pool quux
echo XXX > "$file"
fid=$($LFS path2fid "$file")
- expect1 "$fid" lipe_find3_facet mds1 \! -pool "$pool"
+ expect1 "$fid" lipe_find3_facet mds1 \! -pool "$pool" -print-file-fid
expect_empty lipe_find3_facet mds1 -pool ""
# We do not validate user supplied pool names in lipe_find3 or
xmin="-${x}min"
expect_empty lipe_find3_facet mds1 $xtime -0
- expect1 "$fid" lipe_find3_facet mds1 $xtime 0
+ expect1 "$fid" lipe_find3_facet mds1 $xtime 0 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime +0
- expect1 "$fid" lipe_find3_facet mds1 $xtime -1
+ expect1 "$fid" lipe_find3_facet mds1 $xtime -1 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime 1
expect_empty lipe_find3_facet mds1 $xmin -0
- expect1 "$fid" lipe_find3_facet mds1 $xmin -10
+ expect1 "$fid" lipe_find3_facet mds1 $xmin -10 -print-file-fid
expect_empty lipe_find3_facet mds1 $xmin 10
expect_empty lipe_find3_facet mds1 $xmin +10
now=$(date +%s)
touch -$x --date=@$((now - 25 * 3600)) $file
expect_empty lipe_find3_facet mds1 $xtime 0
- expect1 "$fid" lipe_find3_facet mds1 $xtime +0
+ expect1 "$fid" lipe_find3_facet mds1 $xtime +0 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime -1
- expect1 "$fid" lipe_find3_facet mds1 $xtime 1
+ expect1 "$fid" lipe_find3_facet mds1 $xtime 1 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime +1
- expect1 "$fid" lipe_find3_facet mds1 $xtime -2
+ expect1 "$fid" lipe_find3_facet mds1 $xtime -2 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime -86400s
expect_empty lipe_find3_facet mds1 $xtime 86400s
- expect1 "$fid" lipe_find3_facet mds1 $xtime +86400s
+ expect1 "$fid" lipe_find3_facet mds1 $xtime +86400s -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime -1440m
expect_empty lipe_find3_facet mds1 $xtime 1440m
- expect1 "$fid" lipe_find3_facet mds1 $xtime +1440m
+ expect1 "$fid" lipe_find3_facet mds1 $xtime +1440m -print-file-fid
expect_empty lipe_find3_facet mds1 $xmin -1440
expect_empty lipe_find3_facet mds1 $xmin 1440
- expect1 "$fid" lipe_find3_facet mds1 $xmin +1440
+ expect1 "$fid" lipe_find3_facet mds1 $xmin +1440 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime -24h
expect_empty lipe_find3_facet mds1 $xtime 24h
- expect1 "$fid" lipe_find3_facet mds1 $xtime +24h
+ expect1 "$fid" lipe_find3_facet mds1 $xtime +24h -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime -25h
- expect1 "$fid" lipe_find3_facet mds1 $xtime 25h
+ expect1 "$fid" lipe_find3_facet mds1 $xtime 25h -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime +25h
expect_empty lipe_find3_facet mds1 $xtime -1d
- expect1 "$fid" lipe_find3_facet mds1 $xtime 1d
+ expect1 "$fid" lipe_find3_facet mds1 $xtime 1d -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime +1d
- expect1 "$fid" lipe_find3_facet mds1 $xtime -93600s
- expect1 "$fid" lipe_find3_facet mds1 $xtime -1560m
- expect1 "$fid" lipe_find3_facet mds1 $xtime -26h
- expect1 "$fid" lipe_find3_facet mds1 $xtime -2d
+ expect1 "$fid" lipe_find3_facet mds1 $xtime -93600s -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 $xtime -1560m -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 $xtime -26h -print-file-fid
+ expect1 "$fid" lipe_find3_facet mds1 $xtime -2d -print-file-fid
now=$(date +%s)
touch -$x --date=@$((now - 30 * 86400 - 3600)) $file
expect_empty lipe_find3_facet mds1 $xtime 0
expect_empty lipe_find3_facet mds1 $xtime -30
- expect1 "$fid" lipe_find3_facet mds1 $xtime 30
+ expect1 "$fid" lipe_find3_facet mds1 $xtime 30 -print-file-fid
expect_empty lipe_find3_facet mds1 $xtime +30
done
init_lipe_find3_env "$file"
fid=$($LFS path2fid "$file")
- expect1 "$fid" lipe_find3_facet mds1 -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true
expect_empty lipe_find3_facet mds1 -false
- expect1 "$fid" lipe_find3_facet mds1 -not -false
+ expect1 "$tfile" lipe_find3_facet mds1 -not -false
expect_empty lipe_find3_facet mds1 -not -true
- expect1 "$fid" lipe_find3_facet mds1 \! -false
+ expect1 "$tfile" lipe_find3_facet mds1 \! -false
expect_empty lipe_find3_facet mds1 \! -true
- expect1 "$fid" lipe_find3_facet mds1 -not -not -true
+ expect1 "$tfile" lipe_find3_facet mds1 -not -not -true
expect_empty lipe_find3_facet mds1 -not -not -false
# -and is implicit
- expect1 "$fid" lipe_find3_facet mds1 -true -true
- expect1 "$fid" lipe_find3_facet mds1 -true -and -true
- expect1 "$fid" lipe_find3_facet mds1 -true -or -true
- expect1 "$fid" lipe_find3_facet mds1 -true -or -false
- expect1 "$fid" lipe_find3_facet mds1 -false -or -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -and -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -or -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -or -false
+ expect1 "$tfile" lipe_find3_facet mds1 -false -or -true
- expect1 "$fid" lipe_find3_facet mds1 -true -a -true
- expect1 "$fid" lipe_find3_facet mds1 -true -o -true
- expect1 "$fid" lipe_find3_facet mds1 -true -o -false
- expect1 "$fid" lipe_find3_facet mds1 -false -o -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -a -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -o -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -o -false
+ expect1 "$tfile" lipe_find3_facet mds1 -false -o -true
# -and is implicit
expect_empty lipe_find3_facet mds1 -true -false
# F && T || T => T
# F && F || T => T
- expect1 "$fid" lipe_find3_facet mds1 -false -and -true -or -true
- expect1 "$fid" lipe_find3_facet mds1 -false -and -false -or -true
- expect1 "$fid" lipe_find3_facet mds1 -true -or -false -and -true
- expect1 "$fid" lipe_find3_facet mds1 -true -or -false -and -false
+ expect1 "$tfile" lipe_find3_facet mds1 -false -and -true -or -true
+ expect1 "$tfile" lipe_find3_facet mds1 -false -and -false -or -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -or -false -and -true
+ expect1 "$tfile" lipe_find3_facet mds1 -true -or -false -and -false
expect_error lipe_find3_facet mds1 -and
expect_error lipe_find3_facet mds1 -true -and
init_lipe_find3_env "$file"
fid=$($LFS path2fid "$file")
- expect1 "$fid" lipe_find3_facet mds1 \( -true \)
+ expect1 "$fid" lipe_find3_facet mds1 \( -true \) -print-file-fid
expect_empty lipe_find3_facet mds1 \( -false \)
expect_empty lipe_find3_facet mds1 -false -and \( -true -or -true \)
expect_empty lipe_find3_facet mds1 -false -and \( -false -or -true \)
- expect1 "$fid" lipe_find3_facet mds1 \( -true -true \)
+ expect1 "$fid" lipe_find3_facet mds1 \( -true -true \) -print-file-fid
expect_empty lipe_find3_facet mds1 \( -false -true \)
- expect1 "$fid" lipe_find3_facet mds1 \! \( -false \)
+ expect1 "$fid" lipe_find3_facet mds1 \! \( -false \) -print-file-fid
expect_empty lipe_find3_facet mds1 \! \( -true \)
- expect1 "$fid" lipe_find3_facet mds1 \( \! -false \)
+ expect1 "$fid" lipe_find3_facet mds1 \( \! -false \) -print-file-fid
expect_empty lipe_find3_facet mds1 \( \! -true \)
- expect1 "$fid" lipe_find3_facet mds1 -false , -true
+ expect1 "$fid" lipe_find3_facet mds1 -false , -true -print-file-fid
expect_empty lipe_find3_facet mds1 -true , -false
expect_error lipe_find3_facet mds1 \(