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:
46ee38a
)
add a kludge to avoid detecting vfat on a whole disk as a partition table
author
David Zeuthen
<davidz@redhat.com>
Sat, 22 Mar 2008 05:33:29 +0000
(
01:33
-0400)
committer
David Zeuthen
<davidz@redhat.com>
Sat, 22 Mar 2008 05:33:29 +0000
(
01:33
-0400)
I don't really know how to make a distinction between a MBR and a
VBR. Both have the MSDOS magic at 0x1fe.
src/part-id.c
patch
|
blob
|
history
diff --git
a/src/part-id.c
b/src/part-id.c
index
2de35e6
..
6f71d44
100644
(file)
--- a/
src/part-id.c
+++ b/
src/part-id.c
@@
-300,7
+300,9
@@
main (int argc, char *argv[])
fd = open_device (device_file);
if (fd >= 0) {
- do_table (fd);
+ if (getenv ("ID_FS_USAGE") == NULL) {
+ do_table (fd);
+ }
close (fd);
}