IRC log of #maemo-ssu for Tuesday, 2013-05-07

*** NIN101 has quit IRC00:02
*** xes has joined #maemo-ssu00:02
*** Vlad_on_the_road has quit IRC00:18
*** arcean has quit IRC00:27
*** arcean has joined #maemo-ssu00:27
*** Pali has quit IRC00:38
*** arcean has quit IRC00:47
*** arcean has joined #maemo-ssu00:49
*** dhbiker has quit IRC01:11
*** BCMM has quit IRC01:13
*** M4rtinK has quit IRC01:25
*** unclouded has joined #maemo-ssu01:27
*** xes has quit IRC02:12
*** mnzaki has quit IRC02:53
*** arcean has quit IRC02:58
*** LauRoman has quit IRC03:28
*** Martix_ has quit IRC03:56
*** LaoLang_cool has joined #maemo-ssu05:10
*** LaoLang_cool has quit IRC05:13
*** amiconn has quit IRC05:28
*** amiconn_ has joined #maemo-ssu05:28
*** amiconn_ is now known as amiconn05:28
*** nox- has quit IRC05:49
*** DocScrutinizer05 has quit IRC06:03
*** DocScrutinizer05 has joined #maemo-ssu06:04
*** futpib has quit IRC06:22
*** M13 has joined #maemo-ssu06:22
*** _rd has joined #maemo-ssu07:25
*** _rd has quit IRC07:42
*** dhbiker has joined #maemo-ssu08:17
*** macmaN has quit IRC08:57
*** amiconn has quit IRC09:09
*** M4rtinK has joined #maemo-ssu09:12
*** amiconn has joined #maemo-ssu09:41
*** LauRoman has joined #maemo-ssu09:57
*** M4rtinK has quit IRC10:18
*** andre__ has joined #maemo-ssu10:34
*** andre__ has joined #maemo-ssu10:34
*** sunny_s_ has joined #maemo-ssu10:40
*** sunny_s has quit IRC10:41
*** M13 has quit IRC10:43
*** M13 has joined #maemo-ssu10:47
*** futpib has joined #maemo-ssu11:04
*** wmarone_ has joined #maemo-ssu11:06
*** wmarone has quit IRC11:06
*** wmarone has joined #maemo-ssu11:10
*** wmarone_ has quit IRC11:10
*** wmarone has quit IRC11:16
*** wmarone_ has joined #maemo-ssu11:16
*** wmarone has joined #maemo-ssu11:22
*** wmarone_ has quit IRC11:23
*** wmarone_ has joined #maemo-ssu11:26
*** wmarone has quit IRC11:28
*** wmarone__ has joined #maemo-ssu11:28
*** wmarone_ has quit IRC11:30
*** wmarone__ has quit IRC11:34
*** wmarone has joined #maemo-ssu11:34
*** Pali has joined #maemo-ssu11:39
*** wmarone has quit IRC11:40
*** wmarone has joined #maemo-ssu11:40
*** wmarone has quit IRC11:42
*** wmarone_ has joined #maemo-ssu11:42
*** wmarone__ has joined #maemo-ssu11:52
*** wmarone_ has quit IRC11:52
*** Martix_ has joined #maemo-ssu12:01
*** Pali has quit IRC12:33
*** Pali has joined #maemo-ssu12:50
*** Pali has quit IRC12:54
*** Martix_ has quit IRC12:56
*** M13 has quit IRC13:06
*** Pali has joined #maemo-ssu13:12
*** Martix_ has joined #maemo-ssu13:15
*** Martix_ has quit IRC13:20
*** lizardo has joined #maemo-ssu13:23
*** mnzaki has joined #maemo-ssu14:31
*** tg has quit IRC14:51
*** macmaN has joined #maemo-ssu14:55
*** tg has joined #maemo-ssu14:59
*** BCMM has joined #maemo-ssu15:13
*** tg has quit IRC15:37
*** AndrewX192 has quit IRC15:38
*** AndrewX192 has joined #maemo-ssu15:45
*** tg has joined #maemo-ssu15:46
*** arcean has joined #maemo-ssu15:48
Palimerlin1991: ping15:50
*** Woody14619a is now known as Woody1461916:25
*** sunny_s_ has quit IRC16:34
*** NIN101 has joined #maemo-ssu16:54
Palithis merge request https://gitorious.org/community-ssu/modest/merge_requests/13 for modest is there quite a long17:00
PaliI'm going to merge it into master (cssu-devel)17:01
merlin1991Pali: yeah, go ahead17:54
merlin1991I hope I'll finally get to work on the -t release today/tomorrow17:54
*** Woody14619 is now known as Woody14619a17:55
Palimerged and pushed to cssu-devel17:55
kerioyay :D17:55
merlin1991currently updating servers from squeeze to wheezy17:56
merlin1991I kinda fear touching merlin1991.at though17:56
kerionay D:17:56
merlin1991blindly running dist-upgrade is a scare thing without proper backups :D18:01
merlin1991s/scare/scary/18:01
infobotmerlin1991 meant: blindly running dist-upgrade is a scary thing without proper backups :D18:01
*** asem has joined #maemo-ssu18:39
* merlin1991 makes backups18:59
*** asem has quit IRC19:03
keriobackups are good!19:25
Paliand sometimes you find that you have backup in backup in backup in backup...19:40
Paliand trying to find out why you have full HDD :D19:40
kerioi solve the backup problem by not having anything important19:41
*** Sicelo has quit IRC19:58
*** Sicelo has joined #maemo-ssu19:59
*** BCMM has quit IRC20:12
*** BCMM has joined #maemo-ssu20:14
*** M4rtinK has joined #maemo-ssu20:25
*** M13 has joined #maemo-ssu20:33
*** M4rtinK has quit IRC20:55
Paliit looks like my change to rcS-late working fine. it detecting maemo installed on SD card and eMMC and also correct filesystems21:08
Paliand has support for static /etc/fstab21:08
*** ruskie has quit IRC21:35
*** M4rtinK has joined #maemo-ssu21:38
kerioPali: does it still break horribly if you use LABEL= or UUID=?21:43
Paliah, I forgot this21:44
kerioand are you still using your crappy version of fsck fs type autodetect?21:45
Paliyes and it is not crappy21:47
kerioadds completely unnecessary complexity21:47
PaliI really do not want to call ext fsck untility on fat/ntfs partittion21:47
kerioit won't do anything except complain that it can't find any superblock21:47
kerioactually, hold on21:47
kerioYOUR version will do that21:48
Palikerio, can you write your fstab with label or uuid?21:48
keriomy fstab uses LABEL21:48
keriooh you mean pastebin it somewhere?21:48
Paliyes21:48
*** ruskie has joined #maemo-ssu21:48
kerioPali: it's *your* version that will blindly call fsck.$type_in_fstab21:48
Paliblkid will transtale it to /dev/device21:48
keriofsck will use blkid21:48
keriono, seriously, are you really trying to do this to avoid calling e2fsck with a "wrong" argv[0] that WON'T BE USED AT ALL BY IT?21:50
kerioPali: http://fpaste.org/10910/67952673/21:51
Palikerio, ok I can change code which will call generic "fsck" version21:51
Palibut what happen if: you have ext4 in fstab and partition is extš?21:52
Paliext3?21:52
Palistrace told me that generic fsck using data from /etc/fstab21:53
Paliso this *can* damage/convert filesystem21:53
kerio`fsck LABEL=lolol` correctly picked up my vfat partition21:53
kerioand that's nowhere in fstab21:54
kerioand regardless21:54
keriodosfsck just said "logical sector size is zero" on my ext4 partition21:55
kerioand e2fsck complained about "The superblock could not be read or does not describe a correct ext221:55
keriofilesystem.  If the device is valid and it really contains an ext221:55
keriofilesystem (and not swap or ufs or something else), then the superblock21:55
keriois corrupt"21:55
kerioand did nothing21:56
Paliare you called it with -p or -y?21:56
*** _rd has joined #maemo-ssu21:56
kerioif a fsck tool can't figure out if what's ahead of it /is/ a file system of the correct type, what the hell can it do?21:56
kerioPali: yep21:56
Palifilesystem detection is overwritten by /etc/fstab21:57
kerioso that's even better21:57
Palibut we using HAL/blkid for detection21:57
keriowe're also using blkid to make fstab21:58
Paliso if you specify BAD filesytem in fstab for SD card, then it still works21:58
Palinow you can have static fstab21:58
kerioand at that point, it becomes your responsibility21:58
DocScrutinizer05wtf are you doing?22:00
Paliok, I will extract only device line from /etc/fstab for /home and call generic version fo fsck on it22:01
kerioPali: omg omg omg omg wait22:01
keriofsck /home22:01
kerioi just tested it, it works22:01
Pali$ fsck /home22:02
Palithis not working22:02
Palifsck.ext2: Is a directory while trying to open /home/22:02
keriowut22:02
keriono, /home22:02
Palifsck /home called fsck.ext222:02
Paliwhy?? I have ext3 on /home22:03
keriouser@kerio900:~$ sudo fsck -n /home22:03
keriofsck 1.41.3.maemo0 (12-Oct-2008)22:03
kerioe2fsck 1.41.3.maemo0 (12-Oct-2008)22:03
kerioWarning!  /dev/mmcblk0p2 is mounted.22:03
kerioWarning: skipping journal recovery because doing a read-only filesystem check.22:03
kerioN900_optfs: clean, 35771/643376 files, 257958/2572288 blocks22:03
Paliok, it looks like if filesystem is unknown it calling fsck.ext222:03
kerioseems so22:04
kerioand stop calling it fsck.ext2 like it's something different from fsck.ext3 or e2fsck22:04
keriodoes it work on your end without the trailing slash?22:04
Palihttp://pastebin.com/xaDjhU9R22:04
kerioyeah, yeah, i got that too22:05
keriothe mountpoint is "/home", though22:05
kerionot /home/22:05
Paliyes, working now: http://pastebin.com/PpthS5mE22:05
Palidetected as ext322:06
Paliok22:06
kerioDocScrutinizer05: i'm trying to turn a 'fsck.`grep /home /etc/fstab | cut -d" " -f3` `grep /home /etc/fstab | cut -d" " -f2' into a 'fsck /home' in your future... rcS-late? preinit? where is this?22:06
Palikerio, ok, then I only call "fsck -p /home"22:07
keriorcS-late22:07
PalircS-late22:07
kerioPali: use -a, -p isn't standard22:07
kerioit's the same for e2fsck, though22:07
kerio...and if we assume that /home must be on extfs, or something whose fsck supports -p, we can just use -p i guess22:07
Palifor vfat too?22:07
DocScrutinizer05> >For  most types all the mount program has to do is issue a simple mount(2) system call, and no detailed knowledge of the filesystem type is required.  For a few types how-              ever (like nfs, nfs4, cifs, smbfs, ncpfs) ad hoc code is necessary. The nfs, nfs4, cifs, smbfs, and ncpfs filesystems have a separate mount program. In order  to  make  it              possible  to  treat all types in a uniform way, mount will22:08
DocScrutinizer05execute the program /sbin/mount.TYPE (if that exists) when called with type TYPE.  Since various versions of the              smbmount program have different calling conventions, /sbin/mount.smbfs may have to be a shell script that sets up the desired call.<<22:08
kerioPali: dosfsck doesn't have a -p option i think22:08
Palihahahaha, we have messybox version of mount22:08
Paliand there autodetection not working properly :D22:08
keriooh nvm, it still understands -p22:08
kerioi think that -a and -p are completely synonymous22:09
DocScrutinizer05> >If no -t option is given, or if the auto type is specified, mount will try to guess the desired type.  Mount uses the blkid library for guessing the  filesystem  type;  if              that does not turn up anything that looks familiar, mount will try to read the file /etc/filesystems, or, if that does not exist, /proc/filesystems.  All of the filesystem              types listed there will be tried, except for those that are22:09
DocScrutinizer05labeled "nodev" (e.g., devpts, proc and nfs).  If /etc/filesystems ends in a line with a single *  only,  mount              will read /proc/filesystems afterwards.<<22:09
kerioDocScrutinizer05: fsck, not mount22:10
PaliDocScrutinizer05: this is not tru for our stupid version of mount provided by busybox22:10
DocScrutinizer05who the fuck cares about fsck?22:10
* kerio has strong opinions regarding fsck22:10
Paliit really cannot detect ext4 filesystem22:10
keriothe new rcS-late will support automatic preening on boot22:10
kerioPali: e2fsck is a single binary ;_;22:10
kerioext4 doesn't even exist as a concept, in e2fsprogs, it's just a set of default options to mke2fs22:11
DocScrutinizer05fsck can't detect *anything* since you're *usually* dealing with a _broken_ fs when it comes to fsck, and a broken fs is impossible to reliably detect it's type22:11
kerioDocScrutinizer05: if you can't detect its type, then it's too borked to fix already22:12
keriooften, it's only slightly borked22:12
DocScrutinizer05BS22:12
keriomissing extfs superblock?22:12
keriolike, missing extfs superblock and missing all the superblock backups22:12
DocScrutinizer05pff, so one single block got overwritten?22:12
keriovarious blocks22:13
DocScrutinizer05you can not reliably detect a broken fs' type22:13
kerionot reliably22:13
DocScrutinizer05that's a basic truth22:13
keriobut if the broken fs is not too broken to be unfixable, you can often detect it22:13
kerioand regardless, fsck uses /etc/fstab data too22:14
DocScrutinizer05that's also why fsck never gets executed automatically in fix-all mode22:14
PaliDocScrutinizer05: now we tested that generic fsck using /etc/fstab and blkid for detecting filesytem22:14
Paliand my scripts used fstab/blkid too22:14
Paliso there is really no need to use long scripts for that...22:14
* kerio trusts Pali, but trusts the e2fsprogs authors more22:15
* DocScrutinizer05 shakes head on what it might be you guys try to do here, and wanders off22:15
kerioare they also the kernel guys?22:15
kerioDocScrutinizer05: more configurability in rcS-late regarding the mounting of /home and the generation of fstab22:16
kerioincluding (Pali: optional?) automatic preening22:16
DocScrutinizer05so wtf has fsck to do with that??22:16
kerioaka fsck in "do a summary check and only fix broken stuff if you're certain you can fix it" mode22:17
Palioptionaly call fsck before mounting22:17
Paliext* filesystems need to be checked every N mounts22:17
DocScrutinizer05ooh you are sure about thatß22:17
DocScrutinizer05?22:17
* kerio always uses -C 0 -i 0 when mke2fsing22:18
Paliand in nokia original rcS-late was check: if mounting /home failed then try to run fsck22:18
PaliDocScrutinizer05: this is default behaviour of mkfs.ext322:18
Palido you think that is incorrect?22:18
keriomkfs.ext4 -C -1 -i 0 /dev/mmcblk0p1 #YOLO22:18
DocScrutinizer05yes, and it was rather idiotic since it didn't inform user, not to mention any sane thing like opening console to show diagnostic output and even ask for user interaction to fsck22:19
Paliwhy every desktop linux distribution using that default behaviour too when installing22:19
*** _rd has quit IRC22:20
kerioDocScrutinizer05: my laziness regarding the preparation or the acquisition of food is winning over my hunger, i think i'm going to follow your diet method this evening22:20
*** xes has joined #maemo-ssu22:22
*** _rd has joined #maemo-ssu22:56
*** M13 has quit IRC23:00
*** Vlad_on_the_road has joined #maemo-ssu23:03
*** _rd has quit IRC23:13
Palikerio, now when I enabled auto fsck on my /home (n900) it show me very bad message23:28
Palifilesystem is corrupted23:28
kerio:c23:28
keriois it corrupted?23:29
PaliI backed up (via dd) full partition to pc (via usb)23:29
Paliand started calling fsck -y on home device23:29
Palifsck wrote a lot of lot of errors23:29
Paliand *crashed*23:29
kerioneat23:29
Paliand now fsck crashing always23:30
Palibut (before calling fsck) partition is/was mountable and maemo worked23:30
keriobtw, we should upgrade e2fsprogs23:30
Palinot going to extract data from backup on pc and I will call mkfs.ext3 on /home23:31
kerioPali: again, you keep saying "mkfs.ext3" as if to say that it changes things23:31
PaliI will create clean fileystem23:31
kerioPali: call mkfs.ext2 on it, too23:32
Paliand then copy files extracted from dump23:32
Paliseems there is no way to normal recovery23:32
kerioyou could just copy the files from the backup you made before tinkering with filesystems23:32
kerio:>23:32
PaliI have dd backup before fsck was called23:33
keriocall maemo's fscks on it23:33
PaliI called fsck on emmc device23:33
Palirather create new clean filesytem23:34
kerioto test, i mean23:34
Paliand restore data23:34
*** _rd has joined #maemo-ssu23:34
kerioPali: anyway, if there was a difference, they would've put a way to specify the filesystem features in `e2fsck`23:35
keriomost likely, we have a crap version of e2fsprogs23:36
Palihm, now called fsck -n on desktop on that dd backup and it wrote only small number of Inode XYZ was part of the orphaned inode list23:37
Palithis looks like on maemo is really crap version of e2fsprogs23:37
kerio"crap" = old23:38
Palifreemangordon: it looks like we need new version of e2fsprogs in cssu...23:38
kerioi don't think e2fsprogs has particular library requirements23:39
kerioit *might* be as simple as grabbing the latest debian source package and compiling it23:39
*** Woody14619b has joined #maemo-ssu23:51
*** Woody14619a has quit IRC23:55
*** dhbiker has quit IRC23:55
Palikerio: on desktop fsck fixed that dump without any problems (it removed only 10 inodes which was orphaned)23:58
Palishould now I dd that dump back to n900 eMMC?23:58
*** NIN101 has quit IRC23:58
keriojust put the files back23:58
keriomake a new fs from the desktop23:58
Paliok23:58
*** lizardo has quit IRC23:59

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!