[PC-BSD Commits] r3035 - in pcbsd: branches/7.0/system-overlay/sbin trunk/system-overlay/sbin

svn at pcbsd.org svn at pcbsd.org
Thu Dec 4 08:28:46 PST 2008


Author: kris
Date: 2008-12-04 08:28:45 -0800 (Thu, 04 Dec 2008)
New Revision: 3035

Modified:
   pcbsd/branches/7.0/system-overlay/sbin/mount_ntfs
   pcbsd/trunk/system-overlay/sbin/mount_ntfs
Log:

Updated the mount_ntfs helper script a bit more to fix mounting NTFS-3G



Modified: pcbsd/branches/7.0/system-overlay/sbin/mount_ntfs
===================================================================
--- pcbsd/branches/7.0/system-overlay/sbin/mount_ntfs	2008-12-03 19:51:35 UTC (rev 3034)
+++ pcbsd/branches/7.0/system-overlay/sbin/mount_ntfs	2008-12-04 16:28:45 UTC (rev 3035)
@@ -17,6 +17,7 @@
 MNTSTRING=""
 OPTIONS=""
 FOUNDOPT="0"
+FOUNDU="0"
 HWDEV=""
 FOUNDDEV="0"
 
@@ -25,6 +26,9 @@
     if [ "$FOUNDOPT" = "1" ]
     then
         OPTIONS="${OPTIONS} -o ${i}"
+    elif [ "${FOUNDU}" = "1" ]
+    then
+        OPTIONS="${OPTIONS} -o uid=${i}"
     else
 
        if [ "${FOUNDDEV}" = "1" ]
@@ -60,13 +64,22 @@
         fi
 
         # Add the value to our mount string
-        if [ "${i}" != "-o" ]
+        if [ "${i}" != "-o" -a "${i}" != "-u" ]
         then
           MNTSTRING="${MNTSTRING} ${i}"
         fi
 
     fi
 
+    # Check if we are on a -u flag now
+    if [ "${i}" = "-u" ]
+    then
+       FOUNDU="1"
+    else
+       FOUNDU="0"
+    fi
+
+    # Check if we are on a -o option
     if [ "${i}" = "-o" ]
     then
        FOUNDOPT="1"

Modified: pcbsd/trunk/system-overlay/sbin/mount_ntfs
===================================================================
--- pcbsd/trunk/system-overlay/sbin/mount_ntfs	2008-12-03 19:51:35 UTC (rev 3034)
+++ pcbsd/trunk/system-overlay/sbin/mount_ntfs	2008-12-04 16:28:45 UTC (rev 3035)
@@ -17,6 +17,7 @@
 MNTSTRING=""
 OPTIONS=""
 FOUNDOPT="0"
+FOUNDU="0"
 HWDEV=""
 FOUNDDEV="0"
 
@@ -25,6 +26,9 @@
     if [ "$FOUNDOPT" = "1" ]
     then
         OPTIONS="${OPTIONS} -o ${i}"
+    elif [ "${FOUNDU}" = "1" ]
+    then
+        OPTIONS="${OPTIONS} -o uid=${i}"
     else
 
        if [ "${FOUNDDEV}" = "1" ]
@@ -60,13 +64,22 @@
         fi
 
         # Add the value to our mount string
-        if [ "${i}" != "-o" ]
+        if [ "${i}" != "-o" -a "${i}" != "-u" ]
         then
           MNTSTRING="${MNTSTRING} ${i}"
         fi
 
     fi
 
+    # Check if we are on a -u flag now
+    if [ "${i}" = "-u" ]
+    then
+       FOUNDU="1"
+    else
+       FOUNDU="0"
+    fi
+
+    # Check if we are on a -o option
     if [ "${i}" = "-o" ]
     then
        FOUNDOPT="1"



More information about the Commits mailing list