Compile time switch VFAT to enable Windows compatible file names

This commit is contained in:
Klaus Schmidinger 2001-02-18 16:21:05 +01:00
parent 3586013b8f
commit ad27adfef3
4 changed files with 20 additions and 2 deletions

View File

@ -397,3 +397,5 @@ Video Disk Recorder Revision History
- SVDRP can now immediately reuse the same port if VDR is restarted.
- SVDRP now has a timeout after which the connection is automatically closed
(default is 300 seconds, can be changed in "Setup").
- The compile time switch VFAT can be used to make VDR avoid the ':' character
in file names (VFAT can't handle them). Do 'make VFAT=1' to enable this.

View File

@ -46,6 +46,13 @@ interface. These modes are useful when testing new menus if you
only have a remote connection to the VDR (which, in my case, is
located in the living room and has neither a monitor nor a keyboard).
If your video directory will be on a VFAT partition, add the compile
time switch
VFAT=1
to the 'make' command.
When running, the 'vdr' program writes status information into the
system log file (/var/log/messages). You may want to watch these
messages (tail -f /var/log/mesages) to see if there are any problems.

View File

@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Makefile 1.18 2001/01/13 12:26:43 kls Exp $
# $Id: Makefile 1.19 2001/02/18 16:12:14 kls Exp $
DVBDIR = ../DVB
@ -25,6 +25,11 @@ ifdef DEBUG_OSD
DEFINES += -DDEBUG_OSD
endif
ifdef VFAT
# for people who want their video directory on a VFAT partition
DEFINES += -DVFAT
endif
all: vdr
font: genfontfile fontfix.c fontosd.c
@echo "font files created."

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.c 1.27 2001/02/11 14:53:44 kls Exp $
* $Id: recording.c 1.28 2001/02/18 16:14:05 kls Exp $
*/
#define _GNU_SOURCE
@ -21,7 +21,11 @@
#define RECEXT ".rec"
#define DELEXT ".del"
#ifdef VFAT
#define DATAFORMAT "%4d-%02d-%02d.%02d.%02d.%02d.%02d" RECEXT
#else
#define DATAFORMAT "%4d-%02d-%02d.%02d:%02d.%02d.%02d" RECEXT
#endif
#define NAMEFORMAT "%s/%s/" DATAFORMAT
#define RESUMEFILESUFFIX "/resume.vdr"