All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: irc usage..
Date: Tue, 23 May 2006 22:19:33 +0200	[thread overview]
Message-ID: <e4vqob$apj$1@sea.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.64.0605221055270.3697@g5.osdl.org

Linus Torvalds wrote:
 
> [...] people _should_ realize that removing objects is very very special. 
> Whether it's done by "git prune-packed" or "git prune", that's a very 
> dangerous operations. "git prune" a lot more so than "git prune-packed", 
> of course (in fact, you should _never_ run "git prune" on a repository 
> that is active - you _will_ corrupt it)-

Would it be possible to make 'git prune' command repository corruption safe,
even if some information might be lost (like 'git add')? Or do _corruption_
mean some recoverable only information is lost? Not always one can use "one
repository per developer" workflow.


One of the solution would be to to use reader/writer lock (filesystem
semaphore), with each command modyfying repository performing locking, and
git-prune waiting on lock until noone is accessing repository. Of course
the problem is with OS and filesystems which does not support locking, and
with stale locks...

Second solution would be to [optionally] wait until no process is accessing
repository, copy repository in some safe place, [optionally] calculate
checksum, prune, [optionally] check if the repository was modified
meanwhile and either abort or repeat, and finally copy pruned repository
back.

-- 
Jakub Narebski
Warsaw, Poland

  parent reply	other threads:[~2006-05-23 20:20 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 17:26 irc usage Linus Torvalds
2006-05-20 17:50 ` Junio C Hamano
2006-05-20 18:52   ` Jakub Narebski
2006-05-20 20:39 ` Yann Dirson
2006-05-20 22:18   ` Donnie Berkholz
2006-05-20 22:45     ` Linus Torvalds
2006-05-20 23:12       ` Donnie Berkholz
2006-05-21 19:24         ` Linus Torvalds
2006-05-22  3:59           ` Linus Torvalds
2006-05-22  4:19             ` Donnie Berkholz
2006-05-22  4:50               ` Linus Torvalds
2006-05-22  5:04                 ` Martin Langhoff
2006-05-22  5:21                 ` Donnie Berkholz
2006-05-22  7:42                 ` Martin Langhoff
2006-05-22  9:13                   ` Linus Torvalds
2006-05-22 12:54                     ` Martin Langhoff
2006-05-22 17:27                       ` Linus Torvalds
2006-05-22 17:51                         ` Jakub Narebski
2006-05-22 18:03                           ` Linus Torvalds
2006-05-22 19:03                             ` Matthias Lederhofer
2006-05-22 19:09                               ` Junio C Hamano
2006-05-23 20:19                             ` Jakub Narebski [this message]
2006-05-22 19:46                         ` Martin Langhoff
2006-05-22 19:09                       ` Donnie Berkholz
2006-05-22 19:38                         ` Linus Torvalds
2006-05-22 19:49                           ` Donnie Berkholz
2006-05-22 20:20                             ` Linus Torvalds
2006-05-22 21:48                               ` Donnie Berkholz
2006-05-29 21:54                                 ` Donnie Berkholz
2006-05-29 22:21                                   ` Martin Langhoff
2006-05-29 22:32                                     ` Donnie Berkholz
2006-05-30  0:19                                       ` Martin Langhoff
2006-05-30  5:31                                         ` Donnie Berkholz
2006-05-30  6:01                                           ` Martin Langhoff
2006-05-30  0:43                                       ` Linus Torvalds
2006-05-30 22:31                                       ` Martin Langhoff
2006-05-30 23:07                                         ` Linus Torvalds
2006-05-31  1:04                                           ` Martin Langhoff
2006-05-31  2:49                                             ` Donnie Berkholz
2006-05-31  6:05                                               ` Martin Langhoff
2006-05-31 13:54                                                 ` Alec Warner
2006-05-31 22:03                                                   ` Martin Langhoff
2006-06-01  1:42                                                     ` Alec Warner
2006-06-01  7:47                                                       ` Martin Langhoff
2006-06-05  0:33                                                         ` Alec Warner
2006-06-05  2:06                                                           ` Martin Langhoff
2006-06-05  2:36                                                             ` Alec Warner
2006-06-05  3:49                                                               ` Martin Langhoff
2006-06-05 16:07                                                               ` Sean
2006-06-05 16:07                                                                 ` Sean
2006-05-22 19:41                         ` Martin Langhoff
2006-05-22 20:11                           ` Linus Torvalds
2006-05-22 20:33                             ` Linus Torvalds
2006-05-22 21:41                             ` Matthias Urlichs
2006-05-22 22:18                               ` Linus Torvalds
2006-05-22 23:23                                 ` Martin Langhoff
2006-05-22 23:29                                   ` Martin Langhoff
2006-05-22 23:33                                   ` Linus Torvalds
2006-05-22 22:39                               ` Junio C Hamano
2006-05-22 23:15                                 ` Martin Langhoff
2006-05-23  6:52                                   ` Jeff King
2006-05-23  6:58                                     ` Jeff King
2006-05-23  7:01                                       ` [PATCH 1/2] cvsimport: use git-update-index --index-info Jeff King
2006-05-23  7:00                                     ` [PATCH 2/2] cvsimport: cleanup commit function Jeff King
     [not found]                                       ` <7v4pzh6wtr.fsf@assigned-by-dhcp.cox.net>
2006-05-23  7:13                                         ` Jeff King
2006-05-23  7:27                                       ` [PATCH 1/2] cvsimport: use git-update-index --index-info Jeff King
2006-05-23  8:13                                       ` [PATCH 2/2] cvsimport: cleanup commit function Martin Langhoff
2006-05-23  8:24                                         ` Junio C Hamano
2006-05-23 20:32                                           ` Martin Langhoff
2006-05-23 16:50                                         ` Linus Torvalds
2006-05-23 19:36                                           ` Linus Torvalds
2006-05-23 20:25                                             ` Junio C Hamano
2006-05-23 20:29                                             ` Martin Langhoff
2006-05-23 21:10                                               ` Jeff King
2006-05-23 21:13                                                 ` Martin Langhoff
2006-05-23 17:47                                       ` Morten Welinder
2006-05-23 20:59                                         ` Jeff King
2006-05-23 23:41                                           ` Junio C Hamano
2006-05-24  9:52                                             ` Jeff King
2006-05-22 20:16                         ` irc usage Donnie Berkholz
2006-05-21  9:46       ` Thomas Glanzmann
2006-05-21  1:14     ` Donnie Berkholz
2006-05-22  1:45   ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e4vqob$apj$1@sea.gmane.org' \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.