Make Gerrit do not list and index some subdirectories in folder with repositories

28 views
Skip to first unread message

Oleksandr Presich

unread,
Apr 6, 2020, 7:39:10 AM4/6/20
to Repo and Gerrit Discussion
Hi all,
we have mounted Gerrit repositories directory as an NFS mount with Snapshots enabled.

Now, snapshots directories are being generated inside directory with Gerrit repositories and being listed as Gerrit projects on UI.

E.g.:
/gerrit/git/repo1
/gerrit/git/.snapshots/daily/repo1

Both of those projects are listed in Gerrit UI.

Is there a way to configure gerrit to ignore subdirectories inside /gerrit/git folder?

Gerrit version is 2.14.20.

Thanks!
Olek

Luca Milanesio

unread,
Apr 6, 2020, 7:43:54 AM4/6/20
to Oleksandr Presich, Luca Milanesio, Repo and Gerrit Discussion
In Gerrit the subdirectory is part of the name.

Can you configure the snapshots to be generated somewhere else?


Gerrit version is 2.14.20.

Your version is largely obsolete, see the support policy of the Gerrit community at:

HTH

Luca.


Thanks!
Olek

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/35599dad-16cd-4a55-b635-f11b893c91a4%40googlegroups.com.

Oleksandr Presich

unread,
Apr 20, 2020, 10:55:37 AM4/20/20
to Repo and Gerrit Discussion

Hi Luca,
thanks for an answer.

As Gerrit reads all the directories recursively we just moved directory with repositories one level down:

Now:
/gerrit/mnt_folder/git <- now Gerrit configured to use this folder, so snapshots are not visible as projects
/gerrit/mnt_folder/git/repo1
/gerrit/mnt_folder/.snapshot
/gerrit/mnt_folder/.snapshot/daily/git/repo1 and etc.

And was (git folder is NFS mount):
/gerrit/git/repo1
/gerrit/git/.snapshots/daily/repo1 <- was visible as project in Gerrit

That is a standard location of NFS snaphots in solutions like NetApp. (Actually .snapshot exists in each subdirectory recursively but is not visible for listing like "ls")

Oleksandr

понеділок, 6 квітня 2020 р. 13:43:54 UTC+2 користувач lucamilanesio написав:


On 6 Apr 2020, at 12:39, Oleksandr Presich <presich....@gmail.com> wrote:

Hi all,
we have mounted Gerrit repositories directory as an NFS mount with Snapshots enabled.

Now, snapshots directories are being generated inside directory with Gerrit repositories and being listed as Gerrit projects on UI.

E.g.:
/gerrit/git/repo1
/gerrit/git/.snapshots/daily/repo1

Both of those projects are listed in Gerrit UI.

Is there a way to configure gerrit to ignore subdirectories inside /gerrit/git folder?

In Gerrit the subdirectory is part of the name.

Can you configure the snapshots to be generated somewhere else?


Gerrit version is 2.14.20.

Your version is largely obsolete, see the support policy of the Gerrit community at:

HTH

Luca.


Thanks!
Olek

--
--
To unsubscribe, email rep...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages