Files
fstester/setter/src/main.c

75 lines
2.2 KiB
C
Raw Normal View History

/****************************************************************************
2020-03-01 16:56:27 +00:00
Aaru Data Preservation Suite
-----------------------------------------------------------------------------
2021-03-14 19:14:41 +00:00
Author(s) : Natalia Portillo
--[ License ] ---------------------------------------------------------------
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
2021-03-09 04:42:30 +00:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-----------------------------------------------------------------------------
2020-12-31 23:13:50 +00:00
Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
2019-04-28 19:37:59 +01:00
#include <stddef.h>
2019-01-27 20:33:59 +00:00
#include <stdio.h>
2021-03-09 04:39:19 +00:00
#include "main.h"
#include "include/defs.h"
#if defined(macintosh) && defined(__MWERKS__)
#include <SIOUX.h>
2019-01-27 20:33:59 +00:00
#include <console.h>
#endif
2021-03-09 04:39:19 +00:00
int main(int argc, char** argv)
{
size_t clusterSize = 0;
#if defined(macintosh) && defined(__MWERKS__)
argc = ccommand(&argv);
#endif
2020-03-01 16:57:21 +00:00
printf("Aaru Filesystem Tester (Setter) %s\n", AARU_FSTESTER_VERSION);
printf("%s\n", AARU_COPYRIGHT);
printf("Running in %s (%s)\n", OS_NAME, OS_ARCH);
printf("\n");
if(argc != 2)
{
printf("Usage %s <path>\n", argv[0]);
return -1;
}
GetOsInfo();
GetVolumeInfo(argv[1], &clusterSize);
FileAttributes(argv[1]);
FilePermissions(argv[1]);
ExtendedAttributes(argv[1]);
ResourceFork(argv[1]);
Filenames(argv[1]);
Timestamps(argv[1]);
2018-01-15 21:15:51 +00:00
Links(argv[1]);
DirectoryDepth(argv[1]);
Fragmentation(argv[1], clusterSize);
Sparse(argv[1]);
MillionFiles(argv[1]);
DeleteFiles(argv[1]);
GetVolumeInfo(argv[1], &clusterSize);
return 0;
}