[lkml]   [1996]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Proposal: restrict link(2)

"A month of sundays ago Kevin M. Bealer wrote:"
> Daniel Linder wrote:
> >
> [clip]
> > I agree with Mr. VanDevender on this point. I personally have never
> >used Quota on Linux so maybe this idea is off, but how about adding the
> >smarts to the quota distribution? If this affects us, then it probably
> How about this:
> Quota's can calculate usage by dividing the disk file by the
> user count. A 500 MB file can be shared by 5 people who each
> "pay" 100 MB.

Well, my initial reaction was "No way!", because this means that
you affect somebody else (the file owner) when you do something
(hard link their file with a name in your space), but in fact all
you can do is help them (by lowering their quota) so - maybe!

But this is still unsatisfactory aesthetically. From the point of view
of beauty and simplicity it seems to me that the owner of the original
is the one and only with it on his quota. To continue ...

Personally I would like to see the FS in general react by removing ALL
links to a file when the _owner_ removes the file. OK - we get the same
effect by letting the owner truncate the file before removing his link.
The trouble is that it can't be the default for rm because that breaks all
scripts that rely in the ln+rm trick to safely copy over files. Therefore
it should be an option instead. Everybody immediately alias rm --for-real
foo to "if #foo.links >1 then cp /dev/null foo fi; /bin/rm foo"

The above stops other people file-stealing by waiting on your original
to be erased.

> cost per user = total file size * (1 / # of users hard linking the file)

Personally, I am waiting on a file system that charges other people real
money for reading my files and using my programs ...

Peter T. Breuer Phd. Ing.,
Area de Ingenieria Telematica E-mail:
Dpto. Ingenieria Tel: +34 1 624 99 47
Universidad Carlos III de Madrid Fax: +34 1 624 94 30/65
Butarque 15, E-28911 Leganes URL:

 \ /
  Last update: 2005-03-22 13:38    [W:0.091 / U:3.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site