From ed60d9a6447cf9864413d633f321be3184fff35c 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 --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/sg-freebsd-port.c | 2 +- libburn/sg-freebsd.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index e5aca4b..a1ca661 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2008.11.12.121832" +#define Cdrskin_timestamP "2008.11.15.220652" diff --git a/libburn/sg-freebsd-port.c b/libburn/sg-freebsd-port.c index e7e8168..ca31ac0 100644 --- a/libburn/sg-freebsd-port.c +++ b/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/sg-freebsd.c b/libburn/sg-freebsd.c index 67e2993..9f232dc 100644 --- a/libburn/sg-freebsd.c +++ b/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);