ALT Linux Bugzilla
– Attachment 7343 Details for
Bug 34398
Воспроизводимая нумерация inode'ов
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
remap inode numbers
0002-remap-inode-numbers-ALT-34398.patch (text/plain), 1.07 KB, created by
Vladimir D. Seleznev
on 2018-01-05 03:03:16 MSK
(
hide
)
Description:
remap inode numbers
Filename:
MIME Type:
Creator:
Vladimir D. Seleznev
Created:
2018-01-05 03:03:16 MSK
Size:
1.07 KB
patch
obsolete
>From f775d29e7ac8eda68f2d19998a615f2d151f65f6 Mon Sep 17 00:00:00 2001 >From: "Vladimir D. Seleznev" <vseleznv@altlinux.org> >Date: Fri, 5 Jan 2018 02:54:40 +0300 >Subject: [PATCH 2/2] remap inode numbers (ALT#34398) > >Signed-off-by: Vladimir D. Seleznev <vseleznv@altlinux.org> >--- > build/files.c | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/build/files.c b/build/files.c >index e39ebd3..6113ac6 100644 >--- a/build/files.c >+++ b/build/files.c >@@ -1151,7 +1151,19 @@ static void genCpioListAndHeader(Spec spec, /*@partial@*/ FileList fl, > } > > if (sizeof(flp->fl_ino) != sizeof(uint_32)) { >- uint_32 ino = (uint_32)flp->fl_ino; >+ uint_32 ino; >+ if (flp->fl_mode & S_IFMT != S_IFREG || flp->fl_nlink == 1 || i == 0) >+ ino = (uint_32)i; >+ else { >+ FileListRec tmp; >+ for (int j = 0; j <= i; j++) { >+ tmp = fl->fileList + j; >+ if (flp->fl_ino == tmp->fl_ino) { >+ ino = (uint_32)j; >+ break; >+ } >+ } >+ } > (void) headerAddOrAppendEntry(h, RPMTAG_FILEINODES, RPM_INT32_TYPE, > &(ino), 1); > } else { >-- >2.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34398
:
7342
| 7343