diff options
Diffstat (limited to 'mkudffs/main.c')
-rw-r--r-- | mkudffs/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mkudffs/main.c b/mkudffs/main.c index 066afac..0932013 100644 --- a/mkudffs/main.c +++ b/mkudffs/main.c @@ -1,8 +1,8 @@ /* * main.c * - * Copyright (c) 2001-2002 Ben Fennema <bfennema@falcon.csc.calpoly.edu> - * Copyright (c) 2014-2017 Pali Rohár <pali.rohar@gmail.com> + * Copyright (c) 2001-2002 Ben Fennema + * Copyright (c) 2014-2018 Pali Rohár <pali.rohar@gmail.com> * All rights reserved. * * This program is free software; you can redistribute it and/or modify @@ -30,19 +30,19 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <locale.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> -#include <time.h> -#include <sys/time.h> #include <errno.h> #include <limits.h> #include <dirent.h> #include <sys/ioctl.h> #include <linux/fs.h> #include <linux/fd.h> +#include <sys/sysmacros.h> #include "mkudffs.h" #include "defaults.h" @@ -474,6 +474,9 @@ int main(int argc, char *argv[]) dump_space(&disc); + if (disc.blocks <= 257) + fprintf(stderr, "%s: Warning: UDF filesystem has less than 258 blocks, it can cause problems\n", appname); + if (len == (size_t)-1) fprintf(stderr, "%s: Warning: Volume Set Identifier must be at least 8 characters long\n", appname); else if (len < 16) |