From b9089146f99c0f6c0ea696c5c52993b2100da27c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 15 Nov 2008 22:07:24 +0000 Subject: [PATCH] Removed remark that use of statvfs() was untested with FreeBSD --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/sg-freebsd-port.c | 2 +- libburn/trunk/libburn/sg-freebsd.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index e5aca4b7..a1ca6612 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2008.11.12.121832" +#define Cdrskin_timestamP "2008.11.15.220652" diff --git a/libburn/trunk/libburn/sg-freebsd-port.c b/libburn/trunk/libburn/sg-freebsd-port.c index e7e8168d..ca31ac03 100644 --- a/libburn/trunk/libburn/sg-freebsd-port.c +++ b/libburn/trunk/libburn/sg-freebsd-port.c @@ -76,7 +76,7 @@ Send feedback to libburn-hackers@pykix.org . #include /* XXX */ -/* ts A70909 : >>> untestet yet wether this compiles */ +/* ts A70909 */ #include diff --git a/libburn/trunk/libburn/sg-freebsd.c b/libburn/trunk/libburn/sg-freebsd.c index 67e2993c..9f232dc2 100644 --- a/libburn/trunk/libburn/sg-freebsd.c +++ b/libburn/trunk/libburn/sg-freebsd.c @@ -18,7 +18,7 @@ #include /* XXX */ -/* ts A70909 : >>> untestet yet wether this compiles */ +/* ts A70909 */ #include @@ -622,7 +622,6 @@ int burn_os_stdio_capacity(char *path, off_t *bytes) struct statvfs vfsbuf; char testpath[4096], *cpt; long blocks; - int open_mode = O_RDWR, fd, ret; off_t add_size = 0; testpath[0] = 0; @@ -642,6 +641,8 @@ int burn_os_stdio_capacity(char *path, off_t *bytes) #ifdef Libburn_if_this_was_linuX } else if(S_ISBLK(stbuf.st_mode)) { + int open_mode = O_RDWR, fd, ret; + if(burn_sg_open_o_excl) open_mode |= O_EXCL; fd = open(path, open_mode);