|
@@ -58,6 +58,7 @@ static int __init readwrite(char *str)
|
|
__setup("ro", readonly);
|
|
__setup("ro", readonly);
|
|
__setup("rw", readwrite);
|
|
__setup("rw", readwrite);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BLOCK
|
|
/**
|
|
/**
|
|
* match_dev_by_uuid - callback for finding a partition using its uuid
|
|
* match_dev_by_uuid - callback for finding a partition using its uuid
|
|
* @dev: device passed in by the caller
|
|
* @dev: device passed in by the caller
|
|
@@ -111,6 +112,7 @@ static dev_t __init devt_from_partuuid(char *uuid_str)
|
|
done:
|
|
done:
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* Convert a name into device number. We accept the following variants:
|
|
* Convert a name into device number. We accept the following variants:
|
|
@@ -138,6 +140,7 @@ dev_t name_to_dev_t(char *name)
|
|
dev_t res = 0;
|
|
dev_t res = 0;
|
|
int part;
|
|
int part;
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BLOCK
|
|
if (strncmp(name, "PARTUUID=", 9) == 0) {
|
|
if (strncmp(name, "PARTUUID=", 9) == 0) {
|
|
name += 9;
|
|
name += 9;
|
|
if (strlen(name) != 36)
|
|
if (strlen(name) != 36)
|
|
@@ -147,6 +150,7 @@ dev_t name_to_dev_t(char *name)
|
|
goto fail;
|
|
goto fail;
|
|
goto done;
|
|
goto done;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
if (strncmp(name, "/dev/", 5) != 0) {
|
|
if (strncmp(name, "/dev/", 5) != 0) {
|
|
unsigned maj, min;
|
|
unsigned maj, min;
|