Hello,

It will be a nice feature in Bacula.

2011/10/28 Kern Sibbald <k...@sibbald.com>

> In general, in Bacula we try to avoid doing system dependent stuff unless
> it is absolutely required. Things such as reading /sys or /proc are things
> we do not do because there is no definitive interface, so this can
> create severe support problems in the future.
>

There is an ioctl function (in Linux) which should provide a required
information:

#include <linux/fs.h>
...
ioctl(file, BLKGETSIZE64, &file_size_in_bytes);

Yes, it is a Linux specific, but I'm sure that we can find a proper ioctl
or different functions in other OSes. I haven't tried this yet, but it
looks promising.

best regards

-- 
Radosław Korzeniewski
rados...@korzeniewski.net
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to