Skip to content

Instantly share code, notes, and snippets.

@ivankelly
Created November 23, 2011 18:22
Show Gist options
  • Save ivankelly/1389445 to your computer and use it in GitHub Desktop.
Save ivankelly/1389445 to your computer and use it in GitHub Desktop.
debugfs 1.39 (29-May-2006)
Inode: 190644897 Type: regular Mode: 0664 Flags: 0x0 Generation: 634347075
User: 56433 Group: 100 Size: 3741319680
File ACL: 190645639 Directory ACL: 0
Links: 1 Blockcount: 7306376
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x4ec1dca2 -- Tue Nov 15 03:29:38 2011
atime: 0x4ec1d7e2 -- Tue Nov 15 03:09:22 2011
mtime: 0x4ec1dca2 -- Tue Nov 15 03:29:38 2011
BLOCKS:
(0-11):190650509-190650520, (IND):190650489, (12-1023):190650521-190651532, (1024):190650508, (1025-1035):190651536-190651546, (DIND):190651533, (IND):190651534, (1036-1904):190651547-190652415, (1905-1969):190652528-190652592, (1970-19
77):190652595-190652602, (1978):190652606, (1979-2047):190652728-190652796, (2048):190651535, (2049):190652512, (2050):190652515, (2051-2054):190652524-190652527, (2055-2059):190652800-190652804, (IND):190653587, (2060-2841):190652805-1
90653586, (2842-3071):190653589-190653818, (3072):190653588, (3073-3083):190653824-190653834, (IND):190654616, (3084-3712):190653835-190654463, (3713-3736):190654592-190654615, (3737-4095):190654618-190654976, (4096):190654617, (4097-41
07):190654992-190655002, (IND):190654984, (4108-5119):190655003-190656014, (5120-5126):190654985-190654991, (5127-5131):190656015-190656019, (IND):190656744, (5132-5623):190656020-190656511, (5624-6143):190656752-190657271, (6144-6150):
190656745-190656751, (6151-6155):190657272-190657276, (IND):190658066, (6156-6944):190657277-190658065, (6945-7164):190658068-190658287, (7165-7167):190658290-190658292, (7168):190658067, (7169-7179):190658296-190658306, (IND):190658288
, (7180-7432):190658307-190658559, (7433-7437):192776947-192776951, (7438-7440):192777965-192777967, (7441-7443):192782069-192782071, (7444-7669):192800311-192800536, (7670-8191):192800552-192801073, (8192):190658289, (8193):190658295,
(8194-8203):192801074-192801083, (IND):190658293, (8204-9203):192801084-192802083, (9204-9215):192803111-192803122, (9216):190658294, (9217-9227):192802086-192802096, (IND):192802084, (9228-10228):192802097-192803097, (10229-10239):1928
04140-192804150, (10240):192802085, (10241-10251):192803098-192803108, (IND):192803123, (10252-10253):192803109-192803110, (10254-11256):192803125-192804127, (11257-11263):192804130-192804136, (11264):192803124, (11265-11267):192804137-
192804139, (11268-11275):192804151-192804158, (IND):192804128, (11276-12286):192804159-192805169, (12287):192806197, (12288):192804129, (12289-12299):192805172-192805182, (IND):192805170, (12300-13310):192805183-192806193, (13311):19280
7939, (13312):192805171, (13313-13315):192806194-192806196, (13316):192806198, (13317-13323):192806201-192806207, (IND):192806199, (13324-14027):192806208-192806911, (14028-14335):192807944-192808251, (14336):192806200, (14337-14338):19
2807942-192807943, (14339-14347):192808256-192808264, (IND):192807940, (14348-15359):192808265-192809276, (15360):192807941, (15361-15364):192808252-192808255, (15365-15371):192809280-192809286, (IND):192809993, (15372-16077):192809287-
192809992, (16078-16370):192809995-192810287, (16371-16383):192812049-192812061, (16384):192809994, (16385-16395):192810288-192810298, (IND):192811022, (16396-17118):192810299-192811021, (17119-17398):192811024-192811303, (17399-17407):
192811306-192811314, (17408):192811023, (17409-17419):192811320-192811330, (IND):192811304, (17420-18137):192811331-192812048, (18138-18419):192812062-192812343, (18420-18431):192814102-192814113, (18432):192811305, (18433-18437):192811
315-192811319, (18438-18443):192812344-192812349, (IND):192813075, (18444-19168):192812350-192813074, (19169-19444):192813077-192813352, (19445-19455):192813355-192813365, (19456):192813076, (19457-19467):192814386-192814396, (IND):1928
13353, (19468-20479):192814397-192815408, (20480):192813354, (20481-20491):192813368-192813378, (IND):192813366, (20492-21214):192813379-192814101, (21215-21486):192814114-192814385, (21487-21491):192815409-192815413, (21492-21503):1928
16441-192816452, (21504):192813367, (21505-21515):192815416-192815426, (IND):192815414, (21516-22515):192815427-192816426, (22516-22527):192817470-192817481, (22528):192815415, (22529-22537):192816432-192816440, (22538-22539):192816464-
192816465, (IND):192816456, (22540-23543):192816466-192817469, (23544-23551):192817488-192817495, (23552):192816457, (23553-23563):192818496-192818506, (IND):192816458, (23564-24575):192818507-192819518, (24576):192816459, (24577-24578)
:192816462-192816463, (24579-24584):192817482-192817487, (24585-24587):192817496-192817498, (IND):192816460, (24588-25584):192817499-192818495, (25585-25598):192819520-192819533, (25599):192820561, (25600):192816461, (25601-25611):19281
9535-192819545, (IND):192819519, (25612-26622):192819546-192820556, (26623):192821589, (26624):192819534, (26625):192820560, (26626-26635):192820564-192820573, (IND):192820562, (26636-27637):192820574-192821575, (27638-27647):192821578-
192821587, (27648):192820563, (27649):192821588, (27650-27659):192821590-192821599, (IND):192821576, (27660-28659):192821600-192822599, (28660-28671):192823642-192823653, (28672):192821577, (28673-28683):192822600-192822610, (IND):19282
2615, (28684-28687):192822611-192822614, (28688-29694):192822617-192823623, (29695):192823626, (29696):192822616, (29697-29707):192823627-192823637, (IND):192823624, (29708-29711):192823638-192823641, (29712-30714):192823654-192824656,
(30715-30719):192825685-192825689, (30720):192823625, (30721):192824657, (30722-30731):192824660-192824669, (IND):192824658, (30732-31738):192824670-192825676, (31739-31743):192825679-192825683, (31744):192824659, (31745):192825684, (31
746-31755):192825690-192825699, (IND):192825677, (31756-32763):192825700-192826707, (32764-32767):192827738-192827741, (32768):192825678, (32769-32771):192826708-192826710, (32772-32779):192826713-192826720, (IND):192826711, (32780-3378
7):192826721-192827728, (33788-33791):192827731-192827734, (33792):192826712, (33793-33795):192827735-192827737, (33796-33803):192827742-192827749, (IND):192827729, (33804-34809):192827750-192828755, (34810-34815):192829789-192829794, (
34816):192827730, (34817-34821):192828757-192828761, (34822-34827):192828764-192828769, (IND):192828762, (34828-35833):192828770-192829775, (35834-35839):192829778-192829783, (35840):192828763, (35841-35845):192829784-192829788, (35846-
35851):192829795-192829800, (IND):192829776, (35852-36856):192829801-192830805, (36857-36863):192831838-192831844, (36864):192829777, (36865-36869):192830806-192830810, (36870-36875):192830813-192830818, (IND):192830811, (36876-37881):1
92830819-192831824, (37882-37887):192831826-192831831, (37888):192830812, (37889-37893):192831833-192831837, (37894-37899):192831845-192831850, (IND):192831832, (37900-38905):192831851-192832856, (38906-38911):192833887-192833892, (3891
2):192831825, (38913-38915):192832857-192832859, (38916-38923):192832862-192832869, (IND):192832860, (38924-39933):192832870-192833879, (39934-39935):192833882-192833883, (39936):192832861, (39937-39939):192833884-192833886, (39940-3994
7):192833893-192833900, (IND):192833880, (39948-40954):192833901-192834907, (40955-40959):192835938-192835942, (40960):192833881, (40961-40963):192834908-192834910, (40964-40971):192834913-192834920, (IND):192834911, (40972-41979):19283
4921-192835928, (41980-41983):192835931-192835934, (41984):192834912, (41985-41987):192835935-192835937, (41988-41995):192835943-192835950, (IND):192835929, (41996-43007):192835951-192836962, (43008):192835930, (43009-43019):192836965-1
92836975, (IND):192836963, (43020-44031):192836976-192837987, (44032):192836964, (44033-44036):192837988-192837991, (44037-44043):192837994-192838000, (IND):192837992, (44044-45055):192838001-192839012, (45056):192837993, (45057-45059):
192839013-192839015, (45060-45067):192839018-192839025, (IND):192839016, (45068-45721):192839026-192839679, (45722-46079):192840712-192841069, (46080):192839017, (46081-46083):192840709-192840711, (46084-46091):192841072-192841079, (IND
):192840707, (46092-47103):192841080-192842091, (47104):192840708, (47105-47115):192842096-192842106, (IND):192841070, (47116-48127):192842107-192843118, (48128):192841071, (48129-48130):192842094-192842095, (48131-48139):192843120-1928
43128, (IND):192842092, (48140-49137):192843129-192844126, (49138-49151):192845154-192845167, (49152):192842093, (49153-49163):192844128-192844138, (IND):192843119, (49164-50161):192844139-192845136, (50162-50175):192846182-192846195, (
50176):192844127, (50177-50186):192845144-192845153, (50187):192845170, (IND):192845168, (50188-51197):192845171-192846180, (51198-51199):192846196-192846197, (51200):192845169, (51201):192847207, (51202-51211):192847209-192847218, (IND
):192846181, (51212-52215):192847219-192848222, (52216-52223):192849261-192849268, (52224):192847208, (52225-52234):192848224-192848233, (52235):192848236, (IND):192848234, (52236-53247):192848237-192849248, (53248):192848235, (53249-53
Replace , with newline,
Remove (IND) and (DIND) lines and everything outside (), replace - with " ", then
$ cat blocks2.txt | awk '{if ($2 > 0) { print ($2 - $1) + 1; } else { print 1 } }'
12
1012
1
11
869
65
8
1
69
1
1
1
4
5
782
230
1
11
629
24
359
1
11
1012
7
5
492
520
7
5
789
220
3
1
11
253
5
3
3
226
522
1
1
10
1000
12
1
11
1001
11
1
11
2
1003
7
1
3
8
1011
1
1
11
1011
1
1
3
1
7
704
308
1
2
9
1012
1
4
7
706
293
13
1
11
723
280
9
1
11
718
282
12
1
5
6
725
276
11
1
11
1012
1
11
723
272
5
12
1
11
1000
12
1
9
2
1004
8
1
11
1012
1
2
6
3
997
14
1
1
11
1011
1
1
1
10
1002
10
1
1
10
1000
12
1
11
4
1007
1
1
11
4
1003
5
1
1
10
1007
5
1
1
10
1008
4
1
3
8
1008
4
1
3
8
1006
6
1
5
6
1006
6
1
5
6
1005
7
1
5
6
1006
6
1
5
6
1006
6
1
3
8
1010
2
1
3
8
1007
5
1
3
8
1008
4
1
3
8
1012
1
11
1012
1
4
7
1012
1
3
8
654
358
1
3
8
1012
1
11
1012
1
2
9
998
14
1
11
998
14
1
10
1
1010
2
1
1
10
1004
8
1
10
1
1012
1
11
1
1001
10
1
11
1007
5
1
4
7
3
1005
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment