Re: [Bacula-devel] Block device sizes

2011-10-28 Thread Kern Sibbald
Hello, Why do you need the size? 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. T

[Bacula-devel] Block device sizes

2011-10-28 Thread Bastian Friedrich
Hi, when backing up raw block devices, the device's size is not stored by bacula; instead, the device node's size (0 bytes) is kept in the "LStat" structure. I'd suggest to update the file's LStat value when the file backed up was a device rather than a regular file. I can implement such a be