X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device-src%2Fvfs-device.h;h=109f6cc649b725ace4cb4669416f28c117eea6b4;hb=HEAD;hp=515b0cc25f2b4b888ef58679619e2e121a2281cd;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/device-src/vfs-device.h b/device-src/vfs-device.h index 515b0cc..109f6cc 100644 --- a/device-src/vfs-device.h +++ b/device-src/vfs-device.h @@ -1,9 +1,10 @@ /* - * Copyright (c) 2005-2008 Zmanda Inc. All Rights Reserved. + * Copyright (c) 2005-2012 Zmanda Inc. All Rights Reserved. * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License version 2.1 as - * published by the Free Software Foundation. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY @@ -46,10 +47,24 @@ typedef struct { char * dir_name; char * file_name; int open_file_fd; + gboolean leom; /* Properties */ guint64 volume_bytes; guint64 volume_limit; + gboolean enforce_volume_limit; + + /* should we monitor free space? (controlled by MONITOR_FREE_SPACE property) */ + gboolean monitor_free_space; + + /* how many bytes were free at last check */ + guint64 checked_fs_free_bytes; + + /* when was that check performed? */ + time_t checked_fs_free_time; + + /* and how many bytes have been written since the last check? */ + guint64 checked_bytes_used; } VfsDevice; /*