mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
typo: dont -> don't
This commit is contained in:
committed by
Luca Boccassi
parent
544fc54d72
commit
caf8495e90
@@ -329,23 +329,23 @@ TEST(mount_option_supported) {
|
||||
int r;
|
||||
|
||||
r = mount_option_supported("tmpfs", "size", "64M");
|
||||
log_info("tmpfs supports size=64M: %s (%i)", r < 0 ? "dont know" : yes_no(r), r);
|
||||
log_info("tmpfs supports size=64M: %s (%i)", r < 0 ? "don't know" : yes_no(r), r);
|
||||
assert_se(r > 0 || (r < 0 && ERRNO_IS_PRIVILEGE(r)));
|
||||
|
||||
r = mount_option_supported("ext4", "discard", NULL);
|
||||
log_info("ext4 supports discard: %s (%i)", r < 0 ? "dont know" : yes_no(r), r);
|
||||
log_info("ext4 supports discard: %s (%i)", r < 0 ? "don't know" : yes_no(r), r);
|
||||
assert_se(r > 0 || r == -EAGAIN || (r < 0 && ERRNO_IS_PRIVILEGE(r)));
|
||||
|
||||
r = mount_option_supported("tmpfs", "idontexist", "64M");
|
||||
log_info("tmpfs supports idontexist: %s (%i)", r < 0 ? "dont know" : yes_no(r), r);
|
||||
log_info("tmpfs supports idontexist: %s (%i)", r < 0 ? "don't know" : yes_no(r), r);
|
||||
assert_se(r == 0 || (r < 0 && ERRNO_IS_PRIVILEGE(r)));
|
||||
|
||||
r = mount_option_supported("tmpfs", "ialsodontexist", NULL);
|
||||
log_info("tmpfs supports ialsodontexist: %s (%i)", r < 0 ? "dont know" : yes_no(r), r);
|
||||
log_info("tmpfs supports ialsodontexist: %s (%i)", r < 0 ? "don't know" : yes_no(r), r);
|
||||
assert_se(r == 0 || (r < 0 && ERRNO_IS_PRIVILEGE(r)));
|
||||
|
||||
r = mount_option_supported("proc", "hidepid", "1");
|
||||
log_info("proc supports hidepid=1: %s (%i)", r < 0 ? "dont know" : yes_no(r), r);
|
||||
log_info("proc supports hidepid=1: %s (%i)", r < 0 ? "don't know" : yes_no(r), r);
|
||||
assert_se(r >= 0 || (r < 0 && ERRNO_IS_PRIVILEGE(r)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user