10 Feb 01:17
bug#10774: runcon'|
robert ethridge <ethridge.robert <at> gmail.com>
2012-02-10 00:17:47 GMT
2012-02-10 00:17:47 GMT
what does this do (...'|....) in relation to runcon? -- -- Mr. Ethridge.Robert
what does this do (...'|....) in relation to runcon? -- -- Mr. Ethridge.Robert
Hi, There seems to be a bug in uniq. To duplicate: Use attached file and run it through uniq with -d. It then gives no output. If uniq is run without a flag then the original file is output from uniq. Gerrie <at> GerrieM /cygdrive/c/adhoc/vodacom $ uniq -d a.txt Gerrie <at> GerrieM /cygdrive/c/adhoc/vodacom Gerrie <at> GerrieM /cygdrive/c/adhoc/vodacom $ uniq a.txt 084699880820120120100749 084800053520120120100741 084800053520120120100741 Gerrie <at> GerrieM /cygdrive/c/adhoc/vodacom $ uniq --version uniq (GNU coreutils) 8.10(Continue reading)
The other day I tried figuring out how much disk space a small file took. I used stat, but I only realized today that stat does not provide that information directly, as explained by Eric Blake and Pádraig Brady in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10561 This information is provided indirectly by %b and %B. Multiplying the 2 should give the size on disk. Example: stat -c 'allocated-space=%B*%b apparent-size=%s' $file Currently, this information can be obtained from du: $ stat -c '%s' /etc/phpmyadmin/htpasswd.setup 54 chealer <at> vinci:~$ du -h /etc/phpmyadmin/htpasswd.setup 4,0K /etc/phpmyadmin/htpasswd.setup chealer <at> vinci:~$ However, it would be quite useful if stat could be used to display simultaneously a file's real size and size on disk. Eric Blake suggested this directive to be %S. For the description, he suggested: %S Allocated size (same as %b * %B) I would like to aim for clarity, as these various statistics can be confusing. I suggest to use the name "Size on disk". I also suggested the following:(Continue reading)
On 02/07/2012 11:45 AM, Michael Felt wrote: > Just reading - for reference only - AIX 5.3, and I expect new versions behave as follows > (second link becomes a hardlink to original file, mv "removes" one hard link, i.e. original file (as inode) remains. > > root <at> x105:[/tmp/test]touch f > root <at> x105:[/tmp/test]ln -s f l > root <at> x105:[/tmp/test]ls -l > total 0 > -rw-(Continue reading)r--r-- 1 root system 0 2012-02-07 11:41 f > lrwxrwxrwx 1 root system 1 2012-02-07 11:41 l -> f > root <at> x105:[/tmp/test]ln l s > root <at> x105:[/tmp/test]ls -ogi > total 0 > 239 -rw-r--r-- 2 0 2012-02-07 11:41 f > 240 lrwxrwxrwx 1 1 2012-02-07 11:41 l -> f > 239 -rw-r--r-- 2 0 2012-02-07 11:41 s > root <at> x105:[/tmp/test]mv s f > root <at> x105:[/tmp/test]ls -ogi > total 0 > 239 -rw-r--r-- 1 0 2012-02-07 11:41 f > 240 lrwxrwxrwx 1 1 2012-02-07 11:41 l -> f Hi Michael, the result is the same, but there's a little difference here: your ln does not create a hardlink to the symlink, but rather a hardlink to the symlink's *target*.
francky.leyn <at> telenet.be wrote: > some more questions. > I abstract a file system as something where each dir/file has a header > where all properties reside. Yes. This information is stored in the Inode. You can read about it here. http://en.wikipedia.org/wiki/Inode > There doesn't exist a hybrid file system that unites eg. NTFS and ext4? No. Not as far as I know. > NTFS is not POSIX complient? No. At least as far as I know. Others will know. I don't use NTFS. In any case it would need to support Unix filesystem permissions along with user and group ownership and the full set of behavior. Until recently it was only possible to reliably read from NTFS because the necessary information for it wasn't reverse engineered yet. Recently this has been completed and it is now possible to write to NTFS. Given how it came about it is amazing that it works at all. Bob
Francky Leyn wrote: > Dear Bob, > > thanks for your intervention. > The problem is a lot clearer to me right now. > > It is indead a Virtual Box on top of Windows 7 with an NTFS system > and the Linux virtual box is Ubuntu 11.04. NTFS doesn't have any concept of the same file modes as a Unix-like filesystem. Therefore any adaption layer sitting between an NTFS layer and a Unix filesystem layer can only make compromises. It can't do what it can't do. For example, where would it store this information? What would NTFS do with it? > My conclusion is the following: if I want to execute chmod +x properly, > I need an ext (4?) partition on my machine, separated from the Windows 7 > NTFS system. Correct? Yes. It doesn't need to be ext2, ext3, ext4. It could be any POSIX compliant filesystem. That would include xfs, jfs, for example along with many others. If the files are stored on NTFS then NTFS can't do it. If you want Unix filesystem semantics then it must be on a unix filessystem. For example on the VirtualBox filesystem. If you chmod files in /tmp in the virtual machine everything works fine because that is using a real unix filesystem. I am sure that you thought that disk space was disk space and that you(Continue reading)
Hello, I perform the following: ubuntu <at> ubuntu-VirtualBox:~/.gvfs/account on stockholm/Documents/03 professional/structured_documentation$ ls -l doc/filters_for_this_document -rwx------ 1 ubuntu ubuntu 98 2012-02-06 14:47 doc/filters_for_this_document ubuntu <at> ubuntu-VirtualBox:~/.gvfs/account on stockholm/Documents/03 professional/structured_documentation$ whoami ubuntu ubuntu <at> ubuntu-VirtualBox:~/.gvfs/account on stockholm/Documents/03 professional/structured_documentation$ chmod +x doc/filters_for_this_document chmod: changing permissions of `doc/filters_for_this_document': Operation not supported ubuntu <at> ubuntu-VirtualBox:~/.gvfs/account on stockholm/Documents/03 professional/structured_documentation$ chmod --version chmod (GNU coreutils) 8.5 On another machine I have version 6.10, and there I don't get the error "Operation not supported". What is wrong here? Best regards, Francky Leyn
On 02/01/2012 09:21 AM, Bernhard Voelker wrote: > $ touch f && ln -s f l && ln l s && ls -ogi > total 0 > 6444 -rw-r--r-- 1 0 Feb 1 08:52 f > 6462 lrwxrwxrwx 2 1 Feb 1 08:52 l -> f > 6462 lrwxrwxrwx 2 1 Feb 1 08:52 s -> f > > Trying to mv the hardlink over the symlink seems to succeed: > > $ ~/git/coreutils/src/mv s l > > ... but the name 's' was not unlinked: ... > That behaviour didn't change at least since version 7.1 > (on openSuSE-11.3), but back in the earlier days in 5.93 > (SLES-10.3), 's' disappeared as expected: Hmm, looks like commit f1d1ee91217d08527c6bf7682987339e38116268 introduced this in 2006. Have a nice day, Berny
Playing around with the latest mv checkin, I noticed another corner case: Create a file 'f', a symlink 'l' to it, and then a hardlink 's' to that symlink: $ touch f && ln -s f l && ln l s && ls -ogi total 0 6444 -rw-(Continue reading)r--r-- 1 0 Feb 1 08:52 f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 l -> f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 s -> f Trying to mv the hardlink over the symlink seems to succeed: $ ~/git/coreutils/src/mv s l ... but the name 's' was not unlinked: $ ls -ogi total 0 6444 -rw-r--r-- 1 0 Feb 1 08:52 f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 l -> f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 s -> f Using the -v option looks also normal, but is a nop: $ ~/git/coreutils/src/mv -v s l ‘s’ -> ‘l’ $ ls -ogi total 0
Since I'm closing the related ticket in which this was raised, here's a new one: In http://bugs.gnu.org/6960, Anders Kaseorg noted that 'mv --backup=numbered ...' does not perform an atomic update. It should.
RSS Feed51 | |
|---|---|
187 | |
180 | |
215 | |
101 | |
167 | |
118 | |
227 | |
150 | |
92 | |
173 | |
167 | |
141 | |
90 | |
93 | |
224 | |
123 | |
96 | |
104 | |
167 | |
177 | |
156 | |
206 | |
289 | |
236 | |
305 | |
309 | |
332 | |
373 | |
443 | |
341 | |
262 | |
232 | |
294 | |
303 | |
478 | |
328 | |
214 | |
247 | |
238 | |
311 | |
241 | |
234 | |
211 | |
312 | |
184 | |
383 | |
255 | |
331 | |
307 | |
217 | |
236 | |
269 | |
193 | |
217 | |
219 | |
245 | |
251 | |
145 | |
287 | |
318 | |
244 | |
293 | |
275 | |
384 | |
385 | |
356 | |
160 | |
252 | |
271 | |
194 | |
194 | |
165 | |
198 | |
294 | |
306 | |
361 | |
255 | |
138 | |
232 | |
218 | |
226 | |
197 | |
218 | |
149 | |
182 | |
99 | |
201 | |
156 | |
184 | |
191 | |
128 | |
184 | |
202 | |
213 | |
116 | |
146 | |
209 | |
114 | |
151 | |
132 | |
117 | |
134 | |
126 | |
113 | |
110 | |
96 | |
119 | |
75 | |
19 | |
23 | |
32 | |
18 |