summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs/fs1.c
AgeCommit message (Collapse)Author
2022-11-01hjfs: check and fix print format errorscinap_lenrek
2020-07-12hjfs: update mtime and qid.vers for directory on renamecinap_lenrek
when wstating a file, its directory should be updated to reflect this change. here is what the manpage states: > The mtime field reflects the time of the last change of content > (except when later changed by wstat). For a directory it is the > time of the most recent remove, create, or wstat of a file in the > directory.
2017-03-27hjfs: simplify dprintingspew
2017-03-27hjfs: add simple scan check of directory entry blocksspew
2017-03-27hjfs: start implementation of checking a directoryspew
2017-03-25hjfs: Add comment to change the OFF size to 8 when given the chancespew
2017-03-21hjfs: Clear all refs to zero when reaming.spew
And a couple clarity/formatting changes
2015-01-01hjfs: fix missing superblock dirty mark when reamingcinap_lenrek
2013-07-05hjfs: add users command, fix newuser ? documentationcinap_lenrek
2013-03-14hjfs: fix the megashitcinap_lenrek
aiju → what is this huge if(d != nil) {} megashit if getdent() fails in newentry() then return immidiately and dont override the error string.
2013-01-30hjfs: fix bogus nodata getbuf() of superblock in createroot() (failed ream ↵cinap_lenrek
race bug) we used to do getbuf() with nodata flag so it only worked when we where lucky and got the same in memory block back. this is uncritical once you have reamed the filesystem, its just that sometimes ream would fail with "ream successfull, then hjfs: fsinit: file ./hjfs not found".
2012-11-18hjfs: fix dump / createcinap_lenrek
getdent() introduced a bug as the qid check fails in the case when we walk to DUMPROOTQID, but get ROOTQID in the directory instead. newentry() getblk(..., GBCREATE) caused the whole directory to get dumped until it hit a free slot. we cannot do this because this changes the addresses of Dentries of files but doesnt update the loctree. this caused the bogus walks when we hit a different directory than we expected. what we do now is the following: newentry() was changed to never dump anything. it will just read the directory and return a the address of a free slot or create a new block having space for one. chancreat() then makes a loc in the loctree for the free slot, drops the dirent buffer and calls willmodify() on the new slot. this will dump the block containing the slot (and possible other slots) and updates the loctree to the new version. after that, chancreate() modifies the slot filling the Dentry. there should be no race, as newentry() skips slots that have a loc in the loctree. theres one case where newentry() can dump the block immidiately when it is called from dump. added new parameter for that and documented in the comment. createuserdir() was simplified by just calling chancreat(). to get arround the permission check, a new per channel flag CHFNOPERM was added.
2012-11-16hjfs: fix getfree() races, fix very rare buf leak in deltraverse()cinap_lenrek
2012-11-16hjfs: fix potential deadlock in putloc()cinap_lenrek
2012-11-16hjfs: dentry qid checking, prevent newentry() from allocating already in use ↵cinap_lenrek
slot always check if the directory entry qid from the loc still matches the one on disk before doing anything. helps catching bugs and is basically equivalent to what cwfs does with its checktag. make a haveloc() check in newentry() to make sure we dont allocate a file slot thats still in use, but deleted. this seems to fix the NPROC>1 build problems.
2012-11-15hjfs: fix more missing dirty marks, error handling, cleanupcinap_lenrek
2012-11-15hjfs: fix missing BDELWRI mark in newentry()cinap_lenrek
2012-11-01hjfs: fix group permissions for /adm and /adm/users for initcinap_lenrek
2012-10-03fixed ream code; added megabyte output to dfaiju
2012-10-03fixed potential bug in hjfsaiju
2012-08-08hjfs: various fixesaiju
2012-08-08more hjfs fixesaiju
2012-08-07added hjfsaiju