projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22d0a13
)
Fix problem when accessing unmounted fs
author
charles
<charles>
Sun, 24 Apr 2005 09:18:52 +0000
(09:18 +0000)
committer
charles
<charles>
Sun, 24 Apr 2005 09:18:52 +0000
(09:18 +0000)
direct/yaffsfs.c
patch
|
blob
|
history
diff --git
a/direct/yaffsfs.c
b/direct/yaffsfs.c
index ba7a6a862e45ef39e2142cdca38a01ab50308db9..45539db178dc57b5ab6fa03fc0eb4477d6d692f0 100644
(file)
--- a/
direct/yaffsfs.c
+++ b/
direct/yaffsfs.c
@@
-25,7
+25,7
@@
#endif
#endif
-const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.
2 2004-11-22 03:22:25
charles Exp $";
+const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.
3 2005-04-24 09:18:52
charles Exp $";
// configurationList is the list of devices that are supported
static yaffsfs_DeviceConfiguration *yaffsfs_configurationList;
// configurationList is the list of devices that are supported
static yaffsfs_DeviceConfiguration *yaffsfs_configurationList;
@@
-1124,7
+1124,7
@@
off_t yaffs_freespace(const char *path)
yaffsfs_Lock();
dev = yaffsfs_FindDevice(path,&dummy);
yaffsfs_Lock();
dev = yaffsfs_FindDevice(path,&dummy);
- if(dev)
+ if(dev
&& dev->isMounted
)
{
retVal = yaffs_GetNumberOfFreeChunks(dev);
retVal *= dev->nBytesPerChunk;
{
retVal = yaffs_GetNumberOfFreeChunks(dev);
retVal *= dev->nBytesPerChunk;