Lines Matching refs:fsPath
52 int Fat::check(const char *fsPath) {
67 args[3] = fsPath;
115 int Fat::doMount(const char *fsPath, const char *mountPoint,
146 rc = mount(fsPath, mountPoint, "vfat", flags, mountData);
149 SLOGE("%s appears to be a read only filesystem - retrying mount RO", fsPath);
151 rc = mount(fsPath, mountPoint, "vfat", flags, mountData);
172 int Fat::format(const char *fsPath, unsigned int numSectors, bool wipe) {
179 Fat::wipe(fsPath, numSectors);
197 args[10] = fsPath;
201 args[8] = fsPath;
231 void Fat::wipe(const char *fsPath, unsigned int numSectors) {
235 fd = open(fsPath, O_RDWR);
241 SLOGE("Fat wipe failed to determine size of %s", fsPath);
248 SLOGE("Fat wipe failed to discard blocks on %s", fsPath);
250 SLOGI("Fat wipe %d sectors on %s succeeded", numSectors, fsPath);
254 SLOGE("Fat wipe failed to open device %s", fsPath);