projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5787be2
)
Fix hints for PC floppy drives
author
David Zeuthen
<davidz@redhat.com>
Fri, 20 Jan 2012 16:12:19 +0000
(11:12 -0500)
committer
David Zeuthen
<davidz@redhat.com>
Fri, 20 Jan 2012 16:12:19 +0000
(11:12 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udiskslinuxblock.c
patch
|
blob
|
history
diff --git
a/src/udiskslinuxblock.c
b/src/udiskslinuxblock.c
index
ca4366f
..
deb63e4
100644
(file)
--- a/
src/udiskslinuxblock.c
+++ b/
src/udiskslinuxblock.c
@@
-275,13
+275,12
@@
update_hints (UDisksLinuxBlock *block,
hint_auto = TRUE;
}
}
- else
+
+ /* Floppy drives are not partitionable */
+ if (g_str_has_prefix (device_file, "/dev/fd"))
{
- if (g_str_has_prefix (device_file, "/dev/fd"))
- {
- hint_system = FALSE;
- hint_partitionable = FALSE;
- }
+ hint_system = FALSE;
+ hint_partitionable = FALSE;
}
/* CD-ROM media / drives are not partitionable, at least not here on Linux */