[jbossnative-commits] JBoss Native SVN: r975 - in trunk/sight: native/include and 1 other directories.
jbossnative-commits at lists.jboss.org
jbossnative-commits at lists.jboss.org
Wed Sep 5 12:00:04 EDT 2007
Author: mladen.turk at jboss.com
Date: 2007-09-05 12:00:04 -0400 (Wed, 05 Sep 2007)
New Revision: 975
Modified:
trunk/sight/java/org/jboss/sight/FileSystemType.java
trunk/sight/native/include/sight_types.h
trunk/sight/native/share/jnu.c
Log:
Added USB and RPC file systems
Modified: trunk/sight/java/org/jboss/sight/FileSystemType.java
===================================================================
--- trunk/sight/java/org/jboss/sight/FileSystemType.java 2007-09-05 15:29:18 UTC (rev 974)
+++ trunk/sight/java/org/jboss/sight/FileSystemType.java 2007-09-05 16:00:04 UTC (rev 975)
@@ -81,8 +81,14 @@
SYSFS( 21),
/** Temp filesystem */
TMPFS( 22),
- NONE( 23);
+ /** RPC filesystem */
+ RPC( 23),
+ /** USB filesystem */
+ USBFS( 24),
+ /** File system is mounted to nothing */
+ NONE( 25);
+
private int value;
private FileSystemType(int v)
{
Modified: trunk/sight/native/include/sight_types.h
===================================================================
--- trunk/sight/native/include/sight_types.h 2007-09-05 15:29:18 UTC (rev 974)
+++ trunk/sight/native/include/sight_types.h 2007-09-05 16:00:04 UTC (rev 975)
@@ -145,7 +145,9 @@
#define SIGHT_FS_PROC 20
#define SIGHT_FS_SYSFS 21
#define SIGHT_FS_TMPFS 22
-#define SIGHT_FS_NONE 23
+#define SIGHT_FS_RPC 23
+#define SIGHT_FS_USBFS 24
+#define SIGHT_FS_NONE 25
#define SIGHT_CASE_SENSITIVE_SEARCH 0x00000001
#define SIGHT_CASE_PRESERVED_NAMES 0x00000002
Modified: trunk/sight/native/share/jnu.c
===================================================================
--- trunk/sight/native/share/jnu.c 2007-09-05 15:29:18 UTC (rev 974)
+++ trunk/sight/native/share/jnu.c 2007-09-05 16:00:04 UTC (rev 975)
@@ -415,6 +415,10 @@
return SIGHT_FS_MSDOS;
if (memcmp(p, "FS", 2) == 0)
return SIGHT_FS_FFS;
+ else
+ return SIGHT_FS_UNKNOWN;
+ break;
+ case 'H':
if (memcmp(p, "PFS", 3) == 0)
return SIGHT_FS_HPFS;
else
@@ -457,6 +461,8 @@
return SIGHT_FS_UNKNOWN;
break;
case 'R':
+ if (memcmp(p, "PC", 3) == 0)
+ return SIGHT_FS_RPC;
if (memcmp(p, "OMFS", 4) == 0)
return SIGHT_FS_ROMFS;
if (memcmp(p, "AMFS", 4) == 0)
@@ -483,6 +489,8 @@
case 'U':
if (memcmp(p, "DF", 2) == 0)
return SIGHT_FS_UDF;
+ if (memcmp(p, "SBFS", 4) == 0)
+ return SIGHT_FS_USBFS;
else
return SIGHT_FS_UNKNOWN;
break;
More information about the jbossnative-commits
mailing list