aboutsummaryrefslogtreecommitdiff
path: root/src/myriadfs.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-02-20 07:19:44 +0000
committerMike Buland <eichlan@xagasoft.com>2011-02-20 07:19:44 +0000
commit9af80a223128dd465aabdd311fdf529e97b40e13 (patch)
tree062288ceb5816a50aa95bf77715395b76b5a12ae /src/myriadfs.h
parent3bb19feba42174a08842e035d21edd424ce9ced1 (diff)
downloadlibbu++-9af80a223128dd465aabdd311fdf529e97b40e13.tar.gz
libbu++-9af80a223128dd465aabdd311fdf529e97b40e13.tar.bz2
libbu++-9af80a223128dd465aabdd311fdf529e97b40e13.tar.xz
libbu++-9af80a223128dd465aabdd311fdf529e97b40e13.zip
Well, unlink, mkHardLink, setFileSize, and more are freshly implemented, as is
rename, but there seems to be a problem, rename uses mkHardLink, and if the target exists, hey, it adds another one...not quite ideal...
Diffstat (limited to '')
-rw-r--r--src/myriadfs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/myriadfs.h b/src/myriadfs.h
index b54d170..cc9961a 100644
--- a/src/myriadfs.h
+++ b/src/myriadfs.h
@@ -141,12 +141,15 @@ namespace Bu
141 void create( const Bu::String &sPath, uint16_t iPerms, 141 void create( const Bu::String &sPath, uint16_t iPerms,
142 uint32_t uSpecial ); 142 uint32_t uSpecial );
143 void mkDir( const Bu::String &sPath, uint16_t iPerms ); 143 void mkDir( const Bu::String &sPath, uint16_t iPerms );
144 void mkSymLink( const Bu::String &sPath, const Bu::String &sTarget ); 144 void mkSymLink( const Bu::String &sTarget, const Bu::String &sPath );
145 void mkHardLink( const Bu::String &sTarget, const Bu::String &sPath );
145 Bu::String readSymLink( const Bu::String &sPath ); 146 Bu::String readSymLink( const Bu::String &sPath );
146 Dir readDir( const Bu::String &sPath ); 147 Dir readDir( const Bu::String &sPath );
147 void setTimes( const Bu::String &sPath, int64_t iATime, 148 void setTimes( const Bu::String &sPath, int64_t iATime,
148 int64_t iMTime ); 149 int64_t iMTime );
149 void unlink( const Bu::String &sPath ); 150 void unlink( const Bu::String &sPath );
151 void setFileSize( const Bu::String &sPath, int32_t iSize );
152 void rename( const Bu::String &sFrom, const Bu::String &sTo );
150 153
151 static dev_t devToSys( uint32_t uDev ); 154 static dev_t devToSys( uint32_t uDev );
152 static uint32_t sysToDev( dev_t uDev ); 155 static uint32_t sysToDev( dev_t uDev );
@@ -177,6 +180,7 @@ namespace Bu
177 void writeInode( const RawStat &rs, MyriadStream &rOs ); 180 void writeInode( const RawStat &rs, MyriadStream &rOs );
178 Dir readDir( int32_t iNode ); 181 Dir readDir( int32_t iNode );
179 MyriadStream openByInode( int32_t iNode ); 182 MyriadStream openByInode( int32_t iNode );
183 void addToDir( int32_t iDir, int32_t iNode, const Bu::String &sName );
180 int32_t create( int32_t iParent, const Bu::String &sName, 184 int32_t create( int32_t iParent, const Bu::String &sName,
181 uint16_t uPerms, uint32_t uSpecial ); 185 uint16_t uPerms, uint32_t uSpecial );
182 int32_t allocInode( uint16_t uPerms, uint32_t uSpecial ); 186 int32_t allocInode( uint16_t uPerms, uint32_t uSpecial );