in reply to letting a browser client select a file to download by inode
Erm, that just strikes me as a bad idea. It's the same reason you don't use a "product number" or similar external identifier as a primary key: it's subject to change outside the database that's just begging to get out of sync. What happens if you move to a different machine (or even just a different filesystem on the same box)? What happens if the drive crashes and things get reloaded from a backup? You've just set yourself up to write more code to deal with these contingencies (which means more development time, more testing (and are you really sure you've covered all the cases?)).
Just seems like you're being overly clever to "save" yourself or your DB from doing a trivial bit of work. If you want something tied to the file itself an MD5 or the like would be a better choice than the inum.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: letting a browser client select a file to download by inode
by leocharre (Priest) on Dec 27, 2005 at 13:41 UTC | |
by esskar (Deacon) on Dec 27, 2005 at 15:54 UTC | |
by eric256 (Parson) on Dec 27, 2005 at 16:16 UTC | |
by tirwhan (Abbot) on Dec 27, 2005 at 17:24 UTC |