summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/extra-version.c2
-rw-r--r--libdiskfs/get-source.c2
-rw-r--r--libdiskfs/readonly-changed.c2
-rw-r--r--libdiskfs/sync-default.c2
-rw-r--r--libdiskfs/validate-author.c2
-rw-r--r--libdiskfs/validate-flags.c2
-rw-r--r--libdiskfs/validate-group.c2
-rw-r--r--libdiskfs/validate-mode.c2
-rw-r--r--libdiskfs/validate-owner.c2
-rw-r--r--libdiskfs/validate-rdev.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/libdiskfs/extra-version.c b/libdiskfs/extra-version.c
index b1d78084..51920aa7 100644
--- a/libdiskfs/extra-version.c
+++ b/libdiskfs/extra-version.c
@@ -21,4 +21,4 @@
#include "priv.h"
-char *diskfs_extra_version = "";
+char *diskfs_extra_version __attribute__ ((weak)) = "";
diff --git a/libdiskfs/get-source.c b/libdiskfs/get-source.c
index 43994464..2ef8ebcd 100644
--- a/libdiskfs/get-source.c
+++ b/libdiskfs/get-source.c
@@ -21,7 +21,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_get_source (struct protid *cred, char *source, size_t source_len)
{
if (diskfs_disk_name == NULL)
diff --git a/libdiskfs/readonly-changed.c b/libdiskfs/readonly-changed.c
index 44ee9225..7a1c03e8 100644
--- a/libdiskfs/readonly-changed.c
+++ b/libdiskfs/readonly-changed.c
@@ -24,7 +24,7 @@
changed from read-only to read-write mode or vice-versa. READONLY is the
new state (which is also reflected in DISKFS_READONLY). This function is
also called during initial startup if the filesystem is to be writable. */
-void
+void __attribute__ ((weak))
diskfs_readonly_changed (int readonly)
{
/* By default do nothing at all. */
diff --git a/libdiskfs/sync-default.c b/libdiskfs/sync-default.c
index 0d1fd93b..9646dd69 100644
--- a/libdiskfs/sync-default.c
+++ b/libdiskfs/sync-default.c
@@ -20,4 +20,4 @@
#include "priv.h"
-int diskfs_default_sync_interval = DEFAULT_SYNC_INTERVAL;
+int diskfs_default_sync_interval __attribute__ ((weak)) = DEFAULT_SYNC_INTERVAL;
diff --git a/libdiskfs/validate-author.c b/libdiskfs/validate-author.c
index d7dacabd..cacfbfa4 100644
--- a/libdiskfs/validate-author.c
+++ b/libdiskfs/validate-author.c
@@ -20,7 +20,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_validate_author_change (struct node *np, uid_t author)
{
return 0;
diff --git a/libdiskfs/validate-flags.c b/libdiskfs/validate-flags.c
index bb54dadd..0673ad8a 100644
--- a/libdiskfs/validate-flags.c
+++ b/libdiskfs/validate-flags.c
@@ -20,7 +20,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_validate_flags_change (struct node *np, int flags)
{
return 0;
diff --git a/libdiskfs/validate-group.c b/libdiskfs/validate-group.c
index 556c5aaa..ef296ce1 100644
--- a/libdiskfs/validate-group.c
+++ b/libdiskfs/validate-group.c
@@ -20,7 +20,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_validate_group_change (struct node *np, gid_t group)
{
return 0;
diff --git a/libdiskfs/validate-mode.c b/libdiskfs/validate-mode.c
index 1cf150e6..bfcc9420 100644
--- a/libdiskfs/validate-mode.c
+++ b/libdiskfs/validate-mode.c
@@ -20,7 +20,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_validate_mode_change (struct node *np, mode_t mode)
{
return 0;
diff --git a/libdiskfs/validate-owner.c b/libdiskfs/validate-owner.c
index 0cbe296c..7bb30402 100644
--- a/libdiskfs/validate-owner.c
+++ b/libdiskfs/validate-owner.c
@@ -20,7 +20,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_validate_owner_change (struct node *np, uid_t uid)
{
return 0;
diff --git a/libdiskfs/validate-rdev.c b/libdiskfs/validate-rdev.c
index 2d766346..0d506676 100644
--- a/libdiskfs/validate-rdev.c
+++ b/libdiskfs/validate-rdev.c
@@ -20,7 +20,7 @@
#include "priv.h"
-error_t
+error_t __attribute__ ((weak))
diskfs_validate_rdev_change (struct node *np, dev_t rdev)
{
return 0;