From 1f09bd3a174aa5432ffe7c7d0cd2851ebe5807fb Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Fri, 20 Jan 2012 11:12:19 -0500 Subject: [PATCH] Fix hints for PC floppy drives Signed-off-by: David Zeuthen --- src/udiskslinuxblock.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/udiskslinuxblock.c b/src/udiskslinuxblock.c index ca4366f..deb63e4 100644 --- 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 */ -- 2.7.4