Permalink
Browse files

Report if LARGE FILE supported

vtlcmd -V
mktape -V
will both report if LARGEFILE support is enabled

Allow easier trouble-shooting for >4G files on 32bit platforms

Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
1 parent ab733ef commit e9590e0807a236ac7fa6c32eee796a0e9a584db1 @markh794 committed Mar 26, 2013
Showing with 10 additions and 8 deletions.
  1. +5 −4 usr/edit_tape.c
  2. +5 −4 usr/mktape.c
View
@@ -43,9 +43,9 @@
#include "logging.h"
#if defined _LARGEFILE64_SOURCE
-void *largefile_support = "large file support";
+static void *largefile_support = "large file support";
#else
-void *largefile_support = "No largefile support";
+static void *largefile_support = "No largefile support";
#endif
/* The following variables are needed for the MHVTL_DBG() macro to work. */
@@ -158,8 +158,9 @@ int main(int argc, char *argv[])
}
break;
case 'V':
- printf("%s: version %s\n\n",
- progname, MHVTL_VERSION);
+ printf("%s: version %s\n%s\n\n",
+ progname, MHVTL_VERSION,
+ (char *)largefile_support);
break;
case 'v':
verbose++;
View
@@ -22,9 +22,9 @@
#include "vtllib.h"
#if defined _LARGEFILE64_SOURCE
-void *largefile_support = "large file support";
+static void *largefile_support = "large file support";
#else
-void *largefile_support = "No largefile support";
+static void *largefile_support = "No largefile support";
#endif
/* The following variables are needed for the MHVTL_DBG() macro to work. */
@@ -120,8 +120,9 @@ int main(int argc, char *argv[])
}
break;
case 'V':
- printf("%s: version %s\n\n",
- progname, MHVTL_VERSION);
+ printf("%s: version %s\n%s\n\n",
+ progname, MHVTL_VERSION,
+ (char *)largefile_support);
break;
case 'v':
verbose++;

0 comments on commit e9590e0

Please sign in to comment.