Lines Matching refs:mount
33 #include <sys/mount.h>
174 // 1. mount dev with vfat
175 // 2. if mount ok, save data to nvram
193 //start mount with sync
195 rval = mount(source, target, "vfat", MS_SYNCHRONOUS, 0);
198 snprintf(buf, 128, "echo \"mount %s %s with vfat, rval:%d \">>/tmp/usberr.log", source, target, rval);
203 rval = mount(source, target, "ntfs", MS_RDONLY, 0);
205 snprintf(buf, 128, "echo \"mount %s %s with ntfs, rval:%d \">>/tmp/usberr.log", source, target, rval);
210 /*If we do mount by key in mount command in the console. the write throughput is ok.*/
211 /*I think there're some bugs in the above mount function. But the mount command build by busybox is ok.*/
212 /*So we use mount command here. It isn't a good solution. Just a "work around".*/
213 snprintf(buf, 128, "/bin/mount -t vfat /dev/sda%d /tmp/mnt/usb%d", i, i);
217 snprintf(buf, 128, "/bin/mount -t ntfs /dev/sda%d /tmp/mnt/usb%d", i, i);
291 so before mount, we do umount firstly.