This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] do_mount bug fix


When doing managed mount with none exist win32path It can't umount again.
We have to delete the entry from the windows registry by hand.

$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
D:\dev\cygwin\home\ypeang\tmp
                     36862556  32039836   4822720  87% /home/ypwang/tmp
$ umount /home/ypwang/tmp
umount: /home/ypwang/tmp: No such file or directory


2006-08-21 Yiping Wang <ypwangandy@gmail.com>


       * mount.cc (do_mount): Exit with error msg when using managed mount
       option on none exist win32path.

Index: mount.cc
===================================================================
RCS file: /cvs/src/src/winsup/utils/mount.cc,v
retrieving revision 1.37
diff -u -p -r1.37 mount.cc
--- mount.cc    3 Aug 2005 09:23:39 -0000       1.37
+++ mount.cc    21 Aug 2006 17:41:03 -0000
@@ -122,6 +122,8 @@ do_mount (const char *dev, const char *w
             exit (1);
           }
       }
+      else
+        error (dev);
    }

if (mount (dev, where, flags))



Best Regards

Andy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]